@stamp/core
Core functions for creating stamps
import {
assign,
merge,
slice,
values,
} from '@stamp/core';
assign(dst, ...sources)
@stamp/core/assign
Mutates destination object with shallow assign of passed source objects. Returns destination object.
merge(dst, ...sources)
@stamp/core/merge
Mutates destination object by deeply merging passed source objects. Arrays are concatenated, not overwritten. Returns destination object.
slice(array)
@stamp/core/slice
Common function found in Array.prototype.slice
.
values(object)
@stamp/core/values
Uses Object.values
if available, otherwise own implementation with same functionality is used.