We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 921016e commit e1c300bCopy full SHA for e1c300b
helper/TypeMapping.js
@@ -154,14 +154,14 @@ function safeReplace(reference, replacement){
154
for (let attr in replacement) {
155
let el = replacement[attr];
156
// skip nully elements
157
- if (_.isNull(el) || _.isUndefined(el) || _.isNaN(el)) { continue; }
+ if (_.isNil(el) || _.isNaN(el)) { continue; }
158
reference[attr] = el;
159
}
160
} else if (_.isArray(reference) && _.isArray(replacement)) {
161
reference.length = 0;
162
replacement.forEach(el => {
163
164
- if (_.isNull(el) || _.isUndefined(el) || _.isNaN(el)) { return; }
+ if (_.isNil(el) || _.isNaN(el)) { return; }
165
reference.push(el);
166
});
167
0 commit comments