Back to Sinon

sinon.match.hasOwn

docs/concepts/matchers/api/has-own.md

22.1.0227 B
Original Source

sinon.match.hasOwn(property[, expectation])

Same as sinon.match.has but the property must be defined by the value itself. Inherited properties are ignored.

<<< ../../../.vitepress/tests/docs/matchers/api/has-own.test.js