Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array left rotation javascript

function rotLeft(a, d)
 {
    let rslt = a.slice(d).concat(a.slice(0,d));
    return rslt
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #left #rotation #javascript
ADD COMMENT
Topic
Name
2+7 =