CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_isKeyable.js16 linesDownload Raw Back to lodash-es
1/**2 * Checks if `value` is suitable for use as unique object key.3 *4 * @private5 * @param {*} value The value to check.6 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.7 */8function isKeyable(value) {9  var type = typeof value;10  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')11    ? (value !== '__proto__')12    : (value === null);13}14 15export default isKeyable;16 
basant307/AI_Governance_Project · CoolFace