Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosuke-furukawa/tree-merge
tree-merge written in javascript
https://github.com/yosuke-furukawa/tree-merge
Last synced: about 1 month ago
JSON representation
tree-merge written in javascript
- Host: GitHub
- URL: https://github.com/yosuke-furukawa/tree-merge
- Owner: yosuke-furukawa
- Created: 2014-05-16T16:43:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:55:22.000Z (11 months ago)
- Last Synced: 2024-10-03T04:30:53.624Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TreeMerge
-------------tree merge
How to use
-------------```sh
$ npm install tree-merge -S
``````js
////test
var treeMerge = require('tree-merge');
var assert = require('assert');var a=[["1"],[2,3,[11,[123], 11]], [22]];
var b=[["1"],[2,3,[11, 11]], [22],[2234]];
var expect = [["1"],[2,3,[11,[123],11],[11, 11]],[22],[2234]];
var c=treeMerge(a, b);assert.deepEqual(expect,c);
```