CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
isArguments.js37 linesDownload Raw Back to lodash
1var baseIsArguments = require('./_baseIsArguments'),2    isObjectLike = require('./isObjectLike');3 4/** Used for built-in method references. */5var objectProto = Object.prototype;6 7/** Used to check objects for own properties. */8var hasOwnProperty = objectProto.hasOwnProperty;9 10/** Built-in value references. */11var propertyIsEnumerable = objectProto.propertyIsEnumerable;12 13/**14 * Checks if `value` is likely an `arguments` object.15 *16 * @static17 * @memberOf _18 * @since 0.1.019 * @category Lang20 * @param {*} value The value to check.21 * @returns {boolean} Returns `true` if `value` is an `arguments` object,22 *  else `false`.23 * @example24 *25 * _.isArguments(function() { return arguments; }());26 * // => true27 *28 * _.isArguments([1, 2, 3]);29 * // => false30 */31var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {32  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&33    !propertyIsEnumerable.call(value, 'callee');34};35 36module.exports = isArguments;37 
basant307/AI_Governance_Project · CoolFace