Files
NapCatQQ/.pnpm-store/v3/files/a0/a15bb363f823fd2f21ce314510771edfb9f8a45463756d8796f6d0bfc7dff69b74627e2310a981cef80ac3498c854efc90c42e864ed2c0f6bcb8789ca257b6
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
430 B
Plaintext

/**
* 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;