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

Function ValueOf

deps/v8/test/mjsunit/mjsunit.js:301–316  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

299
300
301 function ValueOf(value) {
302 switch (classOf(value)) {
303 case "Number":
304 return NumberPrototypeValueOf.call(value);
305 case "BigInt":
306 return BigIntPrototypeValueOf.call(value);
307 case "String":
308 return StringPrototypeValueOf.call(value);
309 case "Boolean":
310 return BooleanPrototypeValueOf.call(value);
311 case "Date":
312 return DatePrototypeValueOf.call(value);
313 default:
314 return value;
315 }
316 }
317
318
319 prettyPrinted = function prettyPrinted(value) {

Callers 2

prettyPrintFunction · 0.85
mjsunit.jsFile · 0.85

Calls 2

classOfFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected