Skip to content

Commit

Permalink
Merge pull request #5 from sameer-ahmed/added-isNotNumeric-method-bum…
Browse files Browse the repository at this point in the history
…p-version-to-1.2.0

added isNotNumeric method bump version to 1.2.0
  • Loading branch information
sameer-ahmed committed Apr 23, 2018
2 parents b59ea1b + 038b53d commit e6f8dff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
* @Last Modified time: 2018-02-01 16:18:02
*/

export const isNotNumeric = (value) => {
if (isUndefinedOrNullOrEmpty(value)) {
return true
}
return isNaN(Number(value))
}

export const isBoolean = (value) => {
return typeof value == 'boolean'
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-utils",
"version": "1.1.1",
"version": "1.2.0",
"description": "Simple ES6 Js utils",
"main": "index.js",
"repository": "https://github.com/sameer-ahmed/js-utils.git",
Expand Down

0 comments on commit e6f8dff

Please sign in to comment.