Package Exports
- uncouple
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uncouple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Uncouple
Uncouple prototype methods.
Getting Started
Install with NPM / Yarn.
npm i uncouple
# yarn add uncoupleUncouple module provides a function to uncouple all prototype methods.
import uncouple from 'uncouple';
const { hasOwnProperty: has } = uncouple(Object.prototype);
const o = Object.create(null);
has(o, 'name');
// => false
// Uses Array methods as functions for any Iterable
const { filter } = uncouple(Array.prototype);
filter(document.querySelectorAll('*'), (e) => e.tagName === 'LINK');
// => [ <a href="" />, ... ]License
Released under MIT license. You can see it here.