• 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/isTypedArray.js
1
import getTag from './.internal/getTag.js'
2
import nodeTypes from './.internal/nodeTypes.js'
3
import isObjectLike from './isObjectLike.js'
4

5
/** Used to match `toStringTag` values of typed arrays. */
6
const reTypedTag = /^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/
×
7

8
/* Node.js helper references. */
9
const nodeIsTypedArray = nodeTypes && nodeTypes.isTypedArray
×
10

11
/**
12
 * Checks if `value` is classified as a typed array.
13
 *
14
 * @since 3.0.0
15
 * @category Lang
16
 * @param {*} value The value to check.
17
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
18
 * @example
19
 *
20
 * isTypedArray(new Uint8Array)
21
 * // => true
22
 *
23
 * isTypedArray([])
24
 * // => false
25
 */
26
const isTypedArray = nodeIsTypedArray
×
27
  ? (value) => nodeIsTypedArray(value)
×
28
  : (value) => isObjectLike(value) && reTypedTag.test(getTag(value))
×
29

30
export default isTypedArray
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