mergeKeys
Available since v0.7
The mergeKeys()
method is able to merge two or more keys into a single key (see isKey()
).
import { mergeKeys } from "@aedart/support/misc";
const key = mergeKeys(Symbol('my-symbol'), [ 'b', 'c.d' ], 23);
console.log(key); // [ Symbol('my-symbol'), 'b', 'c.d', 23 ];