ljharb

ljharb/mock-property

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

JavaScript
8
1
MIT License
Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ljharb/mock-property

Account's avatar
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Account's avatar
Array#isArray for older browsers
Account's avatar
string representations of objects in node and the browser
Account's avatar
A CLI tool for arethetypeswrong.github.io
Account's avatar
My shareable eslint config
Account's avatar
My personal tsconfig(s), so my open source projects can share them.
Account's avatar
TypeScript definitions for node
Account's avatar
TypeScript definitions for tape
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Fixtures of ES values, for testing purposes
Account's avatar
Evaluates javascript code blocks from markdown files.
Account's avatar
A better forEach
Account's avatar
Determine if the JS environment has Symbol support. Supports spec, or shams.
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Account's avatar
Does this JS environment support the `name` property on functions?
Account's avatar
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Account's avatar
A robust, ES3 compatible, "has own property" predicate.
Account's avatar
TypeScript definitions for es-value-fixtures
Account's avatar
TypeScript definitions for for-each
Account's avatar
TypeScript definitions for functions-have-names
Account's avatar
TypeScript definitions for get-intrinsic
Account's avatar
TypeScript definitions for gopd
Account's avatar
TypeScript definitions for has-bigints
Account's avatar
TypeScript definitions for has-symbols
Account's avatar
TypeScript definitions for has-property-descriptors
Account's avatar
TypeScript definitions for is-callable
Account's avatar
TypeScript definitions for isarray
Account's avatar
TypeScript definitions for make-arrow-function
Account's avatar
TypeScript definitions for make-async-function
Account's avatar
TypeScript definitions for make-generator-function
Account's avatar
TypeScript definitions for object-inspect
Account's avatar
Convert encodings, uses iconv-lite
Account's avatar
TypeScript definitions for object.assign

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
38 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet