All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._isKeyable.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/**
 * 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;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy