You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
437 B
18 lines
437 B
"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;
|
|
|