mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-11 06:59:29 -07:00
17 lines
402 B
JavaScript
17 lines
402 B
JavaScript
|
"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;
|