UNPKG

braintree-web

Version:

A suite of tools for integrating Braintree in the browser

14 lines (10 loc) 231 B
"use strict"; module.exports = function (array, key, value) { var i; for (i = 0; i < array.length; i++) { if (array[i].hasOwnProperty(key) && array[i][key] === value) { return array[i]; } } return null; };