WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 470ed80

Browse files
committed
Remove dependency
1 parent c13f695 commit 470ed80

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
/* Dependencies. */
4-
var has = require('has');
54
var extend = require('extend');
65
var bail = require('bail');
76
var vfile = require('vfile');
@@ -14,6 +13,7 @@ var plain = require('is-plain-obj');
1413
module.exports = unified().freeze();
1514

1615
var slice = [].slice;
16+
var own = {}.hasOwnProperty;
1717

1818
/* Process pipeline. */
1919
var pipeline = trough().use(pipelineParse).use(pipelineRun).use(pipelineStringify);
@@ -145,7 +145,7 @@ function unified() {
145145
}
146146

147147
/* Get `key`. */
148-
return (has(namespace, key) && namespace[key]) || null;
148+
return (own.call(namespace, key) && namespace[key]) || null;
149149
}
150150

151151
/* Set space. */

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"dependencies": {
2727
"bail": "^1.0.0",
2828
"extend": "^3.0.0",
29-
"has": "^1.0.1",
3029
"is-plain-obj": "^1.1.0",
3130
"trough": "^1.0.0",
3231
"vfile": "^2.0.0",

0 commit comments

Comments
 (0)