UNPKG

@platformos/pos-cli

Version:

Manage your platformOS application

23 lines (21 loc) 437 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = find; /** * Copyright (c) 2019 GraphQL Contributors. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * */ function find(list, predicate) { for (let i = 0; i < list.length; i++) { if (predicate(list[i])) { return list[i]; } } }