mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.16.5.
This commit is contained in:
@@ -28,7 +28,7 @@ var nativeReverse = arrayProto.reverse;
|
||||
* // => [3, 2, 1]
|
||||
*/
|
||||
function reverse(array) {
|
||||
return array ? nativeReverse.call(array) : array;
|
||||
return array == null ? array : nativeReverse.call(array);
|
||||
}
|
||||
|
||||
export default reverse;
|
||||
|
||||
Reference in New Issue
Block a user