From cdc23ecc22340628c5cee6fa52f2402de2d77193 Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Tue, 28 Aug 2018 15:36:15 +0200 Subject: [PATCH] Added comment for nfc method --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index 997bf50..babc574 100644 --- a/index.js +++ b/index.js @@ -399,6 +399,14 @@ class Pass { return this; } + /** + * Sets nfc fields in properties + * + * @method nfc + * @params {Array} data - the data to be pushed in the pass + * @returns {this} + */ + nfc(...data) { if (data.length === 1 && data[0] instanceof Array) { data = data[0];