Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ea6391
commit 754cc73
Showing
9 changed files
with
26 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# http://editorconfig.org/ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[{**/{actual,fixtures,expected,templates}/**,*.md}] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ vendor | |
temp | ||
tmp | ||
TODO.md | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
/*! | ||
* is-descriptor <https://github.com/jonschlinkert/is-descriptor> | ||
* | ||
* Copyright (c) 2015, 2017, Jon Schlinkert. | ||
* Copyright (c) 2015-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var utils = require('./utils'); | ||
var typeOf = require('kind-of'); | ||
var isAccessor = require('is-accessor-descriptor'); | ||
var isData = require('is-data-descriptor'); | ||
|
||
module.exports = function isDescriptor(obj, key) { | ||
if (utils.typeOf(obj) !== 'object') { | ||
if (typeOf(obj) !== 'object') { | ||
return false; | ||
} | ||
if ('get' in obj) { | ||
return utils.isAccessor(obj, key); | ||
return isAccessor(obj, key); | ||
} | ||
return utils.isData(obj, key); | ||
return isData(obj, key); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters