3 ms·
It is referencing the native Array.prototype.sort; I just wanted to make a native-only way. Yes, you can use other native methods and polyfills with the same A
by ivanca 13y ago
It is referencing the native Array.prototype.sort; I just wanted to make a native-only way.
Yes, you can use other native methods and polyfills with the same API, for example here is a jQuery plugin for reversing elements:
jQuery.fn.reverse = [].reverse;