This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/@sinonjs/samsam/lib/is-arguments.js

17 lines
402 B
JavaScript
Raw Permalink Normal View History

"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;