2
私はこのようなコードを持っている:Lodash 4.15.0とLodashが3から4に変更されました。このコードは機能しません。
x: { some: 'value', empty: null }
y: { some: 'value' }
結果:
x: { some: 'value', empty: null }
y: {}
const _ = require('lodash');
const fn = _.partialRight(_.pick, _.identity);
const x = { some: 'value', empty: null };
const y = fn(x);
console.log('x:', x);
console.log('y:', y);
fn
がLodash 3.10.1とremove empty properties
結果になっています
Lodash 4の変更点それはもはや働かないのですか?