MCPcopy Create free account
hub / github.com/nodejs/node / isES2015OrLaterIterable

Function isES2015OrLaterIterable

test/fixtures/snapshot/typescript.js:83068–83083  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

83066 }
83067 }
83068 function isES2015OrLaterIterable(n) {
83069 switch (n) {
83070 case "Float32Array":
83071 case "Float64Array":
83072 case "Int16Array":
83073 case "Int32Array":
83074 case "Int8Array":
83075 case "NodeList":
83076 case "Uint16Array":
83077 case "Uint32Array":
83078 case "Uint8Array":
83079 case "Uint8ClampedArray":
83080 return true;
83081 }
83082 return false;
83083 }
83084 /**
83085 * Gets the requested "iteration type" from an `Iterable`-like or `AsyncIterable`-like type.
83086 */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected