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

Function Convert

deps/v8/test/mjsunit/typedarray-helpers.js:139–144  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

137
138// Also preserves undefined.
139function Convert(item) {
140 if (typeof item == 'bigint') {
141 return Number(item);
142 }
143 return item;
144}
145
146function ToNumbers(array) {
147 let result = [];

Callers 3

ToNumbersFunction · 0.85
TypedArrayAtHelperFunction · 0.85
ArrayAtHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected