UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

25 lines (24 loc) 437 B
export function isDeepKey(key) { switch (typeof key) { case "number": case "symbol": { return false; } case "string": { return key.includes(".") || key.includes("[") || key.includes("]"); } } } export function isKeyOrDeepKey(key) { switch (typeof key) { case "number": { return true; } case "symbol": { return false; } case "string": { return true; } } }