Skip to content

Commit

Permalink
Add available since badge
Browse files Browse the repository at this point in the history
Also, improved example...
  • Loading branch information
aedart committed Jan 28, 2024
1 parent 9d902ba commit 6fe8a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/archive/current/packages/support/misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ empty(typedArr); // false
`empty()` is not able to determine if a [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) or [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) is empty.
:::

## `isKey`
## `isKey` <Badge type="tip" text="Available since v0.7" vertical="middle" />

Determine if given is a valid [key](#ispropertykey) or [property path identifier](./objects.md#has).

Expand All @@ -89,7 +89,7 @@ import {isKey} from '@aedart/support/misc';
isKey('foo'); // true
isKey(12); // true
isKey(Symbol('my-symbol')); // true
isKey([ 'a', 'b.c', 12, Symbol('my-other-symbol')]); // true
isKey([ 'a', 'b.c', Symbol('my-other-symbol')]); // true

isKey(true); // false
isKey([]); // false
Expand Down

0 comments on commit 6fe8a39

Please sign in to comment.