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

MIT12
PackageRelationDependenciesPublished
define-data-property • 1.1.4Define a data property on an object. Will fall back to assignment in an engine without descriptors.DIRECT8
es-define-property • 1.0.0`Object.defineProperty`, but not IE 8's broken one.INDIRECT6
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
get-intrinsic • 1.2.4Get and robustly cache all JS language-level intrinsics at first require timeINDIRECT5
gopd • 1.0.1`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.DIRECT6
has-property-descriptors • 1.0.2Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.DIRECT7
has-proto • 1.0.3Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?INDIRECT0
has-symbols • 1.0.3Determine if the JS environment has Symbol support. Supports spec, or shams.INDIRECT0
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