1.3.21.3.1
Reading changes from the repo…
_.template
, which is roughly twice as fast in most browsers. This enhancement improves performance for template-heavy applications. _.isFinite
, a new utility to check if a value is a finite number, complementing existing functions like _.isNumber
and _.isNaN
. This feature enhances type checking capabilities in your code. _.restrict
function allows you to create a clone of an object with only specified properties, helping to prevent mass-assignment vulnerabilities. This is especially useful for securing your applications. _.sortBy()
, allowing for more intuitive sorting based on object properties. For example, sorting an array of strings by their length is now straightforward. _.template
function now handles undefined values more gracefully, ensuring that undefined results are collected at the end of sorted arrays. This improves the reliability of sorting operations. _.template
function now supports natural multi-line code evaluation, allowing for more flexible and readable template code. This change aligns the functionality with user expectations. _.template
is improved, ensuring that valid ES5 line terminators are correctly escaped and unescaped. This enhances compatibility with various input formats. _.take()
function is now aliased to _.first()
and _.head()
, providing consistency and convenience for users familiar with other programming languages. _.every
and _.any
to consistently cast results to boolean, aligning with ECMAScript's Array::every. This ensures more predictable outcomes when using these functions. _.difference
function to perform a shallow flatten, correcting its behavior to return the expected results when comparing arrays with nested structures. _.isObject
to provide clearer guidance on its usage, ensuring users have the information they need to effectively utilize this function. uniqueId
function, specifying whether it returns a string or integer when called without arguments. This helps users understand its behavior better.