UNPKG

testdouble

Version:

A minimal test double library for TDD with JavaScript

11 lines (9 loc) 206 B
import _ from './wrap/lodash' import symbols from './symbols' export default function cloneDeepIfPossible (args) { try { return _.cloneDeep(args) } catch (e) { return symbols.uncloneable } }