• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tuulijar / testingcourseET / 19670048999

25 Nov 2025 12:48PM UTC coverage: 0.0% (-62.8%) from 62.805%
19670048999

push

github

web-flow
Merge pull request #12 from tuulijar/issue-6-tests-for-keys.js

Changed tests for keys.js to chai/mocha

0 of 224 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 201 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/isArrayLike.js
1
import isLength from './isLength.js'
2

3
/**
4
 * Checks if `value` is array-like. A value is considered array-like if it's
5
 * not a function and has a `value.length` that's an integer greater than or
6
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
7
 *
8
 * @since 4.0.0
9
 * @category Lang
10
 * @param {*} value The value to check.
11
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
12
 * @example
13
 *
14
 * isArrayLike([1, 2, 3])
15
 * // => true
16
 *
17
 * isArrayLike(document.body.children)
18
 * // => true
19
 *
20
 * isArrayLike('abc')
21
 * // => true
22
 *
23
 * isArrayLike(Function)
24
 * // => false
25
 */
26
function isArrayLike(value) {
27
  return value != null && typeof value !== 'function' && isLength(value.length)
×
28
}
29

30
export default isArrayLike
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc