🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

uncouple

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uncouple

Uncople object properties and methods.

0.1.0
Source
npm
Version published
Weekly downloads
137
-35.07%
Maintainers
1
Weekly downloads
 
Created
Source

Uncouple

Uncouple prototype methods.

Getting Started

Install with NPM / Yarn.

npm i uncouple
# yarn add uncouple

Uncouple module provides a function to uncouple all prototype methods.

import uncouple from 'uncouple';

const $Array = uncouple(Array);
const { hasOwnProperty: has } = uncouple(Object);

const phrases = document.querySelectorAll('p');

$Array.filter([...items], (p) => has(p, 'type'));
$Array.map(phrases, (phrase) => phrase.textContent);

License

Released under MIT license. You can see it here.

Keywords

uncouple

FAQs

Package last updated on 22 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts