Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
328 Bytes
import fromPairs from 'lodash/fromPairs.js'
import differenceWith from 'lodash/differenceWith.js'
import toPairs from 'lodash/toPairs.js'
import isEqual from 'lodash/isEqual.js'
export const objectDiff = (a: Record<string, unknown>, b: Record<string, unknown>) =>
fromPairs(differenceWith(toPairs(a), toPairs(b), isEqual))