Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v10.24.1
version:
master
endpoint
share
tweet
var _ = require("lodash@4.17.10") _.assign(global, require("lodash-doc-globals")) Object.observe = _.noop
var users = [ { "id": "12345", "person": { "id": "435345345345345", "first_name": "Jim", "last_name": "Smith", } }, { "id": "12346", "person": { "id": "435345345345345", "first_name": "Joe", "last_name": "Johnson", } }, { "id": "12347", "person": { "id": "435345345345345", "first_name": "Chris", "last_name": "Smith", } }, ]; // The `_.matches` iteratee shorthand. _.find(users, { 'id': "12345" }); // => object for 'pebbles'
Created from: https://lodash.com/docs/4.17.10#find
Loading…
no comments
sign in
to comment