mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-26 13:35:45 -07:00
19 lines
437 B
JavaScript
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;
|