Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ganuz/extend-properties

yisraelx20MIT0.1.1TypeScript support: included

Extend Properties is package from Ganuz library

descriptor, descriptors, modular, modules, properties, property, utilities, utils

readme

@ganuz/extend-properties

Source Code Version MIT License Bundle Size TypeScript

Extend Properties is package from Ganuz library

Install

$ yarn add @ganuz/extend-properties

Or

$ npm install --save @ganuz/extend-properties

Use

Module

import {
  default as extendProperties
} from '@ganuz/extend-properties';

Browser

<script src="https://unpkg.com/@ganuz/extend-properties/bundle.umd.min.js"></script>
let {
  extendProperties
} = G;

Examples

 extendsProperties(null, {}); // throw TypeError
 extendsProperties({}, 'foo'); // throw TypeError
 extendsProperties({color: 'blue', num: 1}, {color: 'red', foo: 'bar'}); // => {color: 'blue', num: 1, foo: 'bar'}
 extendsProperties({foo: 'bar'}, {[Symbol.toStringTag]: 'Tag'}); // => Tag {foo: 'bar'}
 extendsProperties(Object.preventExtensions({name: 'bob'}), {name: 'alice', num: 9}); // => {name: 'bob'}
 extendsProperties({tea: true}, Object.create({foo: 'bar'}, {jeep: {value: false}})); // => {tea: true, jeep: true}
 getOwnPropertyDescriptor(extendsProperties({}, {set some(s){ this._s = s; }}), 'some'); // => {set(s){ this._s = s; }, ...}

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.1.1 (2019-04-16)

Note: Version bump only for package @ganuz/extend-properties

0.1.0 (2019-04-02)

Features