untitled notebook

node v10.24.1
version: master
endpointsharetweet
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