Add is.class() (#2)

This commit is contained in:
Or Schneider 2017-09-24 22:26:15 +03:00 committed by Sindre Sorhus
parent 103c5afe6f
commit 119c41d39b
3 changed files with 19 additions and 1 deletions

View file

@ -115,6 +115,10 @@ JavaScript primitives are as follows: `null`, `undefined`, `string`, `number`, `
An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`.
##### .iterable(value)
##### .class(value)
Returns `true` for instances created by a ES2015 class.
##### .typedArray(value)