New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@amphibian/find

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amphibian/find

matches items in an array or object that return true in the finding function

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

find

build status

matches items in an array or object that return true in the finding function

npm install @amphibian/find
var find = require('@amphibian/find');
var array = ['zero', 'one', 'two', 'three', 'four'];

find(array, (index, i) => i === 2); // > 'two'

var object = {
    zero: {hello: true},
    one: {hello: false},
    two: {hello: true},
    three: {hello: false}
};

find(object, (key, value) => value.hello === true); // > {hello: true}

FAQs

Package last updated on 16 Feb 2017

Related posts