Skip to content

Commit

Permalink
Remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 4, 2019
1 parent 4f7bfeb commit 4a9c0a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

var keys = require('object-keys')
var casing = require('match-casing')
var search = require('nlcst-search')
var nlcstToString = require('nlcst-to-string')
Expand Down Expand Up @@ -39,3 +38,14 @@ function redundantAcronyms() {
}
}
}

function keys(object) {
var result = []
var key

for (key in object) {
result.push(key)
}

return result
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"match-casing": "^1.0.0",
"nlcst-search": "^1.0.0",
"nlcst-to-string": "^2.0.0",
"object-keys": "^1.0.0",
"quotation": "^1.0.0",
"unist-util-position": "^3.0.0"
},
Expand Down Expand Up @@ -67,6 +66,9 @@
"xo": {
"prettier": true,
"esnext": false,
"rules": {
"guard-for-in": "off"
},
"ignores": [
"retext-redundant-acronyms.js"
]
Expand Down

0 comments on commit 4a9c0a1

Please sign in to comment.