hoek
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -264,2 +264,6 @@ 'use strict'; | ||
if (obj === ref) { // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql | ||
return obj !== 0 || 1 / obj === 1 / ref; // -0 / +0 | ||
} | ||
options = options || { prototype: true }; | ||
@@ -277,6 +281,2 @@ | ||
if (obj === ref) { // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql | ||
return obj !== 0 || 1 / obj === 1 / ref; // -0 / +0 | ||
} | ||
return obj !== obj && ref !== ref; // NaN | ||
@@ -943,10 +943,3 @@ } | ||
const target = {}; | ||
const keys = Object.keys(source); | ||
for (let i = 0; i < keys.length; ++i) { | ||
const key = keys[i]; | ||
target[key] = source[key]; | ||
} | ||
return target; | ||
return Object.assign({}, source); | ||
}; | ||
@@ -953,0 +946,0 @@ |
{ | ||
"name": "hoek", | ||
"description": "General purpose node utilities", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"repository": "git://github.com/hapijs/hoek", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
30995
795