npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fj-some

2.0.0

@hemanth

npmHomeRepoSnykSocket
Downloads:17
$ npm install fj-some
DailyWeeklyMonthlyYearly

fj-some

Build Status npm version

functional some for an array.

Installation

npm install fj-some --save

Usage

var some = require('fj-some');
some(elem => elem > 10,[2, 5, 8, 1, 4]); // False.

##API

cb -> array

A curried function that expects:

  • cb [required] : A callback function that receives: currentValue, index and array.

  • array [required]: The array on which the function is applied.