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/create-matcher/is-matcher.js

19 lines
437 B
JavaScript

"use strict";
var isPrototypeOf = require("@sinonjs/commons").prototypes.object.isPrototypeOf;
var matcherPrototype = require("./matcher-prototype");
/**
* Returns `true` when `object` is a matcher
*
* @private
* @param {*} object A value to examine
* @returns {boolean} Returns `true` when `object` is a matcher
*/
function isMatcher(object) {
return isPrototypeOf(matcherPrototype, object);
}
module.exports = isMatcher;