1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Extended test cases and fixed bug

This commit is contained in:
Oliver foster
2019-12-19 12:00:46 +00:00
parent f27c7e0580
commit 5a6af193d2
2 changed files with 6 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ export default class Utils {
}
for (i = 0, l = assigners.length; i < l; i += 1) {
const assigner = assigners[i];
if (typeof assigner === 'object') {
if (typeof assigner === 'object' && assigner !== null) {
const keys = Object.keys(assigner);
keys.forEach((key) => {
result[key] = assigner[key];