Lack of isNumeric #847

Closed
jcampbell05 opened this Issue Nov 8, 2013 · 4 comments

Projects

None yet

4 participants

@jcampbell05

Zepto lacks the isNumeric operator, which is causing issues in my code.

@madrobby madrobby was assigned Nov 24, 2013
@madrobby
Owner

This is a relatively new addition to jQuery and i'm not sure if we should support it. We will consider adding it for completeness.

@benjamingr

All isNumeric does is:

function isNumeric(obj) {
    return !isNaN(parseFloat(obj)) && isFinite(obj);
}

I don't understand why (other than completeness) it should be supported as a part of Zepto.

@mislav
Collaborator

If there are popular libraries/plugins that would work with Zepto if there was isNumeric, we'll add it.

@jcampbell05
@mislav mislav added a commit that closed this issue Jul 13, 2016
@mislav mislav Add `$.isNumeric()`
Fixes #847
6ea6dd8
@mislav mislav closed this in 6ea6dd8 Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment