0.1.2 • Published 5 years ago

@andre_garvin/diff v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Diff module for Objects

No external dependencies

npm i npm @andre_garvin/diff -S
// You can diff objects
console.log(diff({
    message: 'hello, world'
}, {
    messages: [ 'I', 'love', 'cats' ]
})

// you can diff arrays
console.log(diff([ 1, 24, 3], [ 1, 24, 3, 5 ])

// You can also diff strings as well even through it is not a Object
const is_diff = diff('This is awesome', 'This is lame')
console.log(is_diff)
0.1.2

5 years ago

0.1.1

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago