UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

14 lines (12 loc) 282 B
function isDeepKey(key) { switch (typeof key) { case 'number': case 'symbol': { return false; } case 'string': { return key.includes('.') || key.includes('[') || key.includes(']'); } } } export { isDeepKey };