doipjs/node_modules/@sinonjs/samsam/lib/is-arguments.js

17 lines
402 B
JavaScript
Raw Normal View History

2020-10-23 14:35:53 -06:00
"use strict";
var getClass = require("./get-class");
/**
* Returns `true` when `object` is an `arguments` object, `false` otherwise
*
* @alias module:samsam.isArguments
* @param {*} object - The object to examine
* @returns {boolean} `true` when `object` is an `arguments` object
*/
function isArguments(object) {
return getClass(object) === "Arguments";
}
module.exports = isArguments;