import { propEq } from "https://deno.land/x/fae@v1.1.1/mod.ts";
Returns true
if the specified object property is equal, to the given value; false
otherwise.
const shivam = {name: 'shivam', age: 20, hair: 'brown'}
const shubham = {name: 'shubham', age: 22, hair: 'black'}
const Krish = {name: 'krish', age: 25, hair: 'black'}
const students = [shivam, shubham, krish]
const hasBrownHair = Fae.propEq('hair', 'brown')
Fae.filter(hasBrownHair, students) //=> [shubham]