Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Comparison Primitive operations > Methods

const min = Math.min(a,b); // slow
const min = a<b? a: b; // fast
arr.push(x); // slow
arr[arr.length] = x; // fast
Source by javascript.plainenglish.io #
 
PREVIOUS NEXT
Tagged: #Comparison #Primitive #operations #Methods
ADD COMMENT
Topic
Name
9+4 =