We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf11844 commit 92e211cCopy full SHA for 92e211c
circle.yml
@@ -1,6 +1,6 @@
1
machine:
2
node:
3
- version: 8.2.0
+ version: 6.12.3
4
dependencies:
5
pre:
6
- npm install -g npm@5.2.0
src/lib/validators.js
@@ -72,14 +72,14 @@ export function isRefSelector (refOptionsObject: any) {
72
}
73
74
const validFindKeys = ['ref']
75
- const entries = Object.entries(refOptionsObject)
76
-
77
- if (!entries.length) {
+ const keys = Object.keys(refOptionsObject)
+ if (!keys.length) {
78
return false
79
80
81
- const isValid = entries.every(([key, value]) => {
82
- return validFindKeys.includes(key) && typeof value === 'string'
+ const isValid = Object.keys(refOptionsObject).every((key) => {
+ return validFindKeys.includes(key) &&
+ typeof refOptionsObject[key] === 'string'
83
})
84
85
return isValid
0 commit comments