We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12bad13 commit ca92ac8Copy full SHA for ca92ac8
DOCUMENTATION.md
@@ -0,0 +1,22 @@
1
+# Variadic.js
2
+
3
+<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
4
5
+### Table of Contents
6
7
+- [variadic](#variadic)
8
+ - [isEmpty](#isempty)
9
10
+## variadic
11
12
+### isEmpty
13
14
+This function evaluates if all the parameters are empty
15
16
+**Parameters**
17
18
+- `params` **...any** One or more parameters.
19
20
+**Meta**
21
22
+- **author**: jhowardjr
README.md
@@ -40,6 +40,10 @@ variadic.isEmpty([0, 2, 3], {}, 0); // false
40
variadic.isEven(2, 4, 6); // error
41
```
42
43
+## Documenation
44
45
+See [DOCUMENTATION.md](DOCUMENTATION.md)
46
47
## Running the tests
48
49
index.js
@@ -1,6 +1,8 @@
'use strict';
-// REGISTER ALL MODULES
+/**
+ * @module variadic
+ */
module.exports = Object.assign(
{},
require('./lib/isEmpty.js'),
lib/isEmpty.js
@@ -1,5 +1,11 @@
+ * This function evaluates if all the parameters are empty
+ * @memberof variadic
+ * @author jhowardjr
+ * @param {...*} params - One or more parameters.
exports.isEmpty = (...params) => {
const invalid = params.some((param) => {
switch (typeof param) {
package.json
@@ -8,7 +8,8 @@
"lint": "eslint index.js lib/**/*.js spec/**/*.js",
"fix": "eslint index.js lib/**/*.js spec/**/*.js --fix",
"coveralls": "nyc jasmine && nyc report --reporter=text-lcov | coveralls",
- "build": "BABEL_ENV=production babel index.js -d dist && BABEL_ENV=production babel lib/ -d dist/lib"
+ "build": "BABEL_ENV=production babel index.js -d dist && BABEL_ENV=production babel lib/ -d dist/lib",
+ "docs": "documentation readme --readme-file DOCUMENTATION.md -s Variadic.js index.js lib/**"
},
"repository": {
"type": "git",
@@ -38,4 +39,4 @@
38
39
"nyc": "^11.4.1"
"dependencies": {}
-}
+}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments