1.4.31.4.2
Reading changes from the repo…
_.compact
function, which now uses the built-in _.identity
function instead of creating a new function each time. This change enhances efficiency without altering functionality. _.times
function now collects return values, allowing for more versatile usage. This enhancement makes it easier to work with the results of repeated function calls. _.uniq
function now accepts a more flexible argument signature, allowing you to pass an array, an iterator, and a context. This change simplifies how you can use this function in your code. _.toArray
function is now more robust, only calling Array.prototype.slice
on actual arrays. This improvement ensures better compatibility, especially with NodeList objects in older browsers like IE8. _.isFinite
function has been updated to align with the ES5 and ES6 specifications, ensuring it behaves correctly with various input types. This change enhances the reliability of this utility in your JavaScript code. _.all
and _.any
methods now features native-like names, making it easier for users to understand and utilize these functions effectively. _.toArray
function would throw an error on NodeList objects in IE8. This fix restores expected functionality for users on older browsers. _.unescape
documentation to provide clear guidance on its usage. This update helps users understand how to effectively use this function in their projects. _.contains
function by removing unnecessary local variables, streamlining the code for better performance.