licenses.dev

mock-property v1.0.3

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

Published on

Licenses

Learn more about license information.

Package Licenses

MIT

Dependency Licenses

MIT9
PackageRelationDependenciesPublished
define-data-property • 1.1.4Define a data property on an object. Will fall back to assignment in an engine without descriptors.DIRECT3
es-define-property • 1.0.1`Object.defineProperty`, but not IE 8's broken one.INDIRECT0
es-errors • 1.3.0A simple cache for a few of the JS Error constructors.INDIRECT0
function-bind • 1.1.2Implementation of Function.prototype.bindINDIRECT0
functions-have-names • 1.2.3Does this JS environment support the `name` property on functions?DIRECT0
gopd • 1.2.0`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.DIRECT0
has-property-descriptors • 1.0.2Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.DIRECT1
hasown • 2.0.2A robust, ES3 compatible, "has own property" predicate.DIRECT1
isarray • 2.0.5Array#isArray for older browsersDIRECT0
Last updated on

Copy the licenses badge code for the latest version:

[![licenses](https://licenses.dev/b/npm/mock-property)](https://licenses.dev/npm/mock-property)
<a href="https://licenses.dev/npm/mock-property">
  <img src="https://licenses.dev/b/npm/mock-property" alt="licenses" />
</a>

Or the licenses badge code for the 1.0.3 version:

[![licenses](https://licenses.dev/b/npm/mock-property/1.0.3)](https://licenses.dev/npm/mock-property/1.0.3)
<a href="https://licenses.dev/npm/mock-property/1.0.3">
  <img src="https://licenses.dev/b/npm/mock-property/1.0.3" alt="licenses" />
</a>
GitHub