what is the time complexity of the Array.prototype.length method in javascript? -
i've searched on mdn , w3schools, don't provide infos on time complexity
as stack overflow javascript: length method efficient? & is javascript string length constant time?
but none stated whether length method kept size of array every time got modified, or has calculated every time it's called.
Comments
Post a Comment