integreat
Version:
Node.js integration layer
10 lines • 323 B
JavaScript
import mapAny from 'map-any';
import { isObject } from './is.js';
function unwrapValue(value) {
return isObject(value) &&
Object.prototype.hasOwnProperty.call(value, '$value')
? value.$value
: value;
}
export default (value) => mapAny(unwrapValue, value);
//# sourceMappingURL=unwrapValue.js.map