0.1.2 • Published 6 years ago

@andre_garvin/diff v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 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)