Skip to content

Commit

Permalink
Add _.isNaN
Browse files Browse the repository at this point in the history
  • Loading branch information
cht8687 committed Jan 28, 2016
1 parent 3a5ef01 commit b8559a6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You are welcome to contribute with more items provided below.
1. [_.includes](#_includes)
1. [_.keys](#_keys)
1. [_.size](#_size)
1. [_.isNaN](#_isNaN)


## _.each
Expand Down Expand Up @@ -352,6 +353,7 @@ Checks if value is in collection.
Retrieve all the names of the object's own enumerable properties.

```js
// Underscore/Lodash
var result = _.keys({one: 1, two: 2, three: 3});
console.log(result);
// output: ["one", "two", "three"]
Expand All @@ -372,6 +374,7 @@ Retrieve all the names of the object's own enumerable properties.
Return the number of values in the collection.

```js
// Underscore/Lodash
var result = _.size({one: 1, two: 2, three: 3});
console.log(result);
// output: 3
Expand All @@ -387,6 +390,25 @@ Return the number of values in the collection.
--- | --- | --- | --- | --- |
5✔ | 4.0 ✔ | 9 | 12 | 5 |

## _.isNaN

Checks if value is NaN.

```js
// Underscore/Lodash
console.log(_.isNaN(NaN));
// output: true

// Native
console.log(isNaN(NaN));
// output: true
```
### Browser Support

![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
✔ | ✔ | ✔ | ✔ | ✔ |

## Reference

* [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference)
Expand Down

0 comments on commit b8559a6

Please sign in to comment.