_.isMatch ships with Underscore.js (1.x). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.isMatch()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded.
100%With Underscore 1.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.isMatchUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.isMatch(object, properties) returns true when object contains every key-value pair from properties. Extra keys on the object are allowed. It answers immediately with a boolean — it does not return a function.
Given stooge = {name: "moe", age: 32}, _.isMatch(stooge, {age: 32}) returns true. The object contains the required pair; name is ignored.
_.isMatch(object, properties) tests right now and returns true or false. _.matcher(properties) returns a reusable predicate you can pass to _.filter or _.find. Under the hood, matcher calls isMatch for each object.
_.isEqual requires the same shape on both sides — extra keys fail. _.isMatch is a partial match: the object only needs to contain the given pairs. {name:"moe", age:32} isMatch {age:32} is true, but isEqual is false.
No. Values are compared with !==, so nested objects and arrays must be the same reference. For a deep comparison of two whole objects, use _.isEqual.
No. It is a stable Underscore 1.x helper used for partial property checks and as the engine behind _.matcher.