@f/extend

Simple shallow extend implementation

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/extend
001.0.06 years ago6 years agoMinified + gzip package size for @f/extend in KB

Readme

extend

Build status Git tag NPM version Code style

Simple shallow extend implementation

Installation

$ npm install @f/extend

Usage

var extend = require('@f/extend')

extend({}, defaultOpts, opts)

API

extend(dst, ...objs)

  • dst - The destination object to copy the properties of ...objs into
  • ...objs - A variable length list of objects who's properties you want to copy into dst. They will be copied in increasing order of precedence (i.e. those that come later will overwrite those that come earlier)

Returns: dst

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.