summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
blob: ded81c8a4378149e2d1f22732260f2b0c307765b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-array.prototype.every
es5id: 15.4.4.16-4-12
description: Array.prototype.every - 'callbackfn' is a function
---*/

        function callbackfn(val, idx, obj) {
            return val > 10;
        }

assert.sameValue([11, 9].every(callbackfn), false, '[11, 9].every(callbackfn)');