Skip to content

ExternKit/extern-js-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extern-js-merge

  • Target : Javascript (NodeJS + Browser)
  • Library : merge
  • Last tested version : 1.2.0
  • Available on : Github - NPM

Usage

import js.merge.*;

class Main
{
  static function main()
  {
    var original, cloned;

    trace(Merge.merge({ one:'hello' }, { two: 'world' }));
    // -> {"one": "hello", "two": "world"}

    original = { x: { y: 1 } };
    cloned = Merge.merge(true, original);
    cloned.x.y++;

    trace(original.x.y, cloned.x.y);
    // -> 1, 2

    trace(Merge.recursive(true, original, { x: { z: 2 } }));
    // -> {"x": { "y": 1, "z": 2 } }
  }
}

About

Javascript merge library extern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages