Add is.propertyKey (#138)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com> Co-authored-by: Giora Guttsait <giora111@gmail.com>
This commit is contained in:
parent
6f2b24d822
commit
d2f98e472d
3 changed files with 23 additions and 0 deletions
|
|
@ -428,6 +428,10 @@ Returns `true` if `value` is an even integer.
|
|||
|
||||
Returns `true` if `value` is an odd integer.
|
||||
|
||||
##### .propertyKey(value)
|
||||
|
||||
Returns `true` if `value` can be used as an object property key (either `string`, `number`, or `symbol`).
|
||||
|
||||
##### .any(predicate | predicate[], ...values)
|
||||
|
||||
Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue