MCPcopy
hub / github.com/tdewolff/minify / len

Function len

_benchmarks/sample_echarts.js:740–742  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

738 return out;
739 }
740 function len(v) {
741 return Math.sqrt(lenSquare(v));
742 }
743 var length = len;
744 function lenSquare(v) {
745 return v[0] * v[0] + v[1] * v[1];

Callers 15

TestDecimalRandomFunction · 0.85
TestNumberRandomFunction · 0.85
DataURIFunction · 0.85
DecimalFunction · 0.85
NumberFunction · 0.85
MinifyMethod · 0.85
BytesMethod · 0.85
StringMethod · 0.85
TestAddFunction · 0.85
TestHelperProcessFunction · 0.85
normalizeFunction · 0.85
forceLayoutFunction · 0.85

Calls 1

lenSquareFunction · 0.85

Tested by 10

TestDecimalRandomFunction · 0.68
TestNumberRandomFunction · 0.68
TestAddFunction · 0.68
TestHelperProcessFunction · 0.68
benchmarkFunction · 0.68
BenchmarkJQueryFunction · 0.68
TestBufferFunction · 0.68
TestCreateTasksFunction · 0.68
TestBufferFunction · 0.68
TestBufferFunction · 0.68