1 | // @generated
|
2 | /**
|
3 | * Copyright (c) 2013-present, Facebook, Inc.
|
4 | * All rights reserved.
|
5 | *
|
6 | * This source code is licensed under the BSD-style license found in the
|
7 | * LICENSE file in the root directory of this source tree. An additional grant
|
8 | * of patent rights can be found in the PATENTS file in the same directory.
|
9 | *
|
10 | *
|
11 | * @fullSyntaxTransform
|
12 | */
|
13 |
|
14 | ;
|
15 |
|
16 | function find(array, predicate, context) {
|
17 | for (var ii = 0; ii < array.length; ii++) {
|
18 | if (predicate.call(context, array[ii], ii, array)) {
|
19 | return array[ii];
|
20 | }
|
21 | }
|
22 | return undefined;
|
23 | }
|
24 |
|
25 | module.exports = find; |
\ | No newline at end of file |