{"action":"opened","issue":{"url":"https://api.github.com/repos/substantial/updeep/issues/13","labels_url":"https://api.github.com/repos/substantial/updeep/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/substantial/updeep/issues/13/comments","events_url":"https://api.github.com/repos/substantial/updeep/issues/13/events","html_url":"https://github.com/substantial/updeep/issues/13","id":99286167,"number":13,"title":"Add `u.is`","user":{"login":"aaronjensen","id":8588,"avatar_url":"https://avatars.githubusercontent.com/u/8588?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronjensen","html_url":"https://github.com/aaronjensen","followers_url":"https://api.github.com/users/aaronjensen/followers","following_url":"https://api.github.com/users/aaronjensen/following{/other_user}","gists_url":"https://api.github.com/users/aaronjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjensen/subscriptions","organizations_url":"https://api.github.com/users/aaronjensen/orgs","repos_url":"https://api.github.com/users/aaronjensen/repos","events_url":"https://api.github.com/users/aaronjensen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjensen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/substantial/updeep/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/substantial/updeep/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T19:55:57Z","updated_at":"2015-08-05T19:55:57Z","closed_at":null,"body":"Works like `u.in` but simply returns true or false if the predicate is met:\r\n\r\n```js\r\nu.is(\"a.b\", 3, { a: { b: 3 } }); // => true\r\nu.is(\"a.b\", 2, { a: { b: 3 } }); // => false\r\nu.is(\"a.b\", isEven, { a: { b: 3 } }); // => false\r\n```\r\n\r\npredicate can be a value or a function. If it's a function, invoke it and use the return value. \r\npath can be a string or an array, just like `u.in`.\r\n\r\nI may have gotten the order of the arguments of `u.in` and `u.is` wrong... wondering if value should be first...\r\n\r\n\r\n\r\n"}}