mock-property
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
- 6
- JavaScript
- MIT
- 5 mo ago
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Define an accessor property on an object. Will either throw, or fall back to assignment in loose mode, in an engine without descriptors.
Plugin for `dush` and anything based on it. It adds helper `.define` and `.delegate` methods