deno.land / x / lodash@4.17.19 / npm-package / _isKeyable.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null);}
module.exports = isKeyable;
lodash

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉