Comparing version 2.5.1 to 2.5.2
@@ -16,4 +16,4 @@ 'use strict' | ||
if (!value || !(typeof value === 'object')) return value | ||
var typeStr = Object.prototype.toString.call(value) | ||
var newObj = typeStr === '[object Array]' ? [] : {} | ||
if (value instanceof Date) return new Date(value) | ||
var newObj = Array.isArray(value) ? [] : {} | ||
var valueObj = value | ||
@@ -20,0 +20,0 @@ Object.keys(valueObj).forEach(function (key) { |
{ | ||
"name": "js-fns", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "Modern JavaScript utility library focused on the build size", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85772