@stamp/core

1.0.1 • Public • Published

@stamp/core

Core functions for creating stamps

const {assign, merge} = require('@stamp/core');
// or
import {assign, merge} 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.
  • Everything else but plain objects are copied by reference.

Returns destination object/array or a new object/array in case it was not.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @stamp/core

    Weekly Downloads

    1,256

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • fredyc
    • koresar
    • stamp