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:
PopGoesTheWza 2021-09-10 10:26:13 +02:00 committed by GitHub
parent 6f2b24d822
commit d2f98e472d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View file

@ -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`: