1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-12 17:06:16 -05:00
notes/node_modules/doiuse/test/has-keys.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

7 lines
201 B
JavaScript

module.exports = hasKeys
function hasKeys (t, object, keys) {
var objectKeys = Object.keys(object).sort()
var expectedKeys = [].concat(keys).sort()
return t.deepEqual(objectKeys, expectedKeys)
}