Bot releases are hidden (Show)
Module
type (#121)isPlainObject
to _utils
to allow testing (e922a16)isPlainObject
logic more readable (e458b63)isPlainObject
util (b24a213)Published by pi0 12 months ago
defu(['a', 'b'], ['c', 'd'])
// With v6+
['a', 'b', 'c', 'd']
// Before
['c', 'd', 'a', 'b']
Before:
// With v6+
import { defu } from 'defu'
const { defu } = require('defu')
// Before
import defu from 'defu'
const defu = require('defu')
Other utilities are also exported as named exports to be tree-shakable:
// instead of defu.fn
import { defuFn } from 'defu'
// Instead of defu.arrayFn
import { defuArrayFn } from 'defu'
// Instead of defu.extend
import { createDefu } from 'defu'