Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "allege", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Make complex conditionals easier to read and write", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,11 +10,5 @@ # Allege | ||
```js | ||
if ( | ||
foo.bar === 'value_a' || | ||
foo.bar === 'value_b' || | ||
foo.bar === 'value_c' || | ||
foo.bar === 'value_d' || | ||
foo.bar === 'value_e' | ||
) { | ||
// do something | ||
} | ||
if (foo.bar === 'value_a' ||foo.bar === 'value_b' ||foo.bar === 'value_c' ||foo.bar === 'value_d' ||foo.bar === 'value_e') { | ||
// do something | ||
} | ||
``` | ||
@@ -25,13 +19,13 @@ | ||
```js | ||
if ( | ||
allege(foo.bar).isAnyOf( | ||
'value_a', | ||
'value_b', | ||
'value_c', | ||
'value_d', | ||
'value_e' | ||
) | ||
) { | ||
// do something | ||
} | ||
if ( | ||
allege(foo.bar).isAnyOf( | ||
'value_a', | ||
'value_b', | ||
'value_c', | ||
'value_d', | ||
'value_e' | ||
) | ||
) { | ||
// do something | ||
} | ||
``` | ||
@@ -38,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35235
19
136