Answers for "typescript array find value"

3

find value in array ts

this.persons =  this.personService.getPersons().find(x => x.id == this.personId);
Posted by: Guest on March-20-2021
13

typescript array find

const array1 = [5, 12, 8, 130, 44];

const found = array1.find(element => element > 10);

console.log(found);
// expected output: 12
Posted by: Guest on June-01-2020

Code answers related to "typescript array find value"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language