MCPcopy Index your code
hub / github.com/nodejs/node / isPrimitiveChunk

Function isPrimitiveChunk

lib/internal/streams/iter/from.js:63–65  ·  view source on GitHub ↗

* Check if value is a primitive chunk (string, ArrayBuffer, or ArrayBufferView). * @returns {boolean}

(value)

Source from the content-addressed store, hash-verified

61 * @returns {boolean}
62 */
63function isPrimitiveChunk(value) {
64 return typeof value === 'string' || isAnyArrayBuffer(value) || ArrayBufferIsView(value);
65}
66
67/**
68 * Check if value is a sync iterable (has Symbol.iterator).

Callers 5

normalizeSyncValueFunction · 0.85
normalizeAsyncValueFunction · 0.85
fromSyncFunction · 0.85
fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected