Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ie-array-find-polyfill
Advanced tools
Polyfill to provide array.find on IE.
To install the stable version:
npm install ie-array-find-polyfill --save
import ie-array-find-polyfill
'use strict';
require('ie-array-find-polyfill');
const people = [
{
name: 'Joe Due',
age: 35
},
{
name: 'Peter Belt',
age: 30
},
{
name: 'Parker Manson',
age: 75
},
{
name: 'Junior Manson',
age: 20
},
{
name: 'Mary Due Manson',
age: 21
},
{
name: 'Baby Due',
age: 3
},
];
const babies = people.find(x => x.age <= 8);
const teems = people.find(x => x.age > 8 && x.age <= 20);
const adults = people.find(x => x.age > 20 && x.age <= 50);
const classicGuys = people.find(x => x.age > 50 && x.age < 100);
console.log('babies: ', babies);
console.log('teems: ', teems);
console.log('adults: ', adults);
console.log('classicGuys: ', classicGuys);
>node example.js
//RESULT
babies: { name: 'Baby Due', age: 3 }
teems: { name: 'Junior Manson', age: 20 }
adults: { name: 'Joe Due', age: 35 }
classicGuys: { name: 'Parker Manson', age: 75 }
FAQs
Polyfill to provide array.find on IE.
We found that ie-array-find-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.