From 6fe8a3971c4927044de209cfa33dfe7c10f90b85 Mon Sep 17 00:00:00 2001 From: Alin Eugen Deac Date: Sun, 28 Jan 2024 15:47:19 +0100 Subject: [PATCH] Add available since badge Also, improved example... --- docs/archive/current/packages/support/misc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/archive/current/packages/support/misc.md b/docs/archive/current/packages/support/misc.md index e4d866e4..a6d21760 100644 --- a/docs/archive/current/packages/support/misc.md +++ b/docs/archive/current/packages/support/misc.md @@ -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` Determine if given is a valid [key](#ispropertykey) or [property path identifier](./objects.md#has). @@ -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