minifix: add missing parameter to verifyNoNilFields example (#2081)

We add the missing `name` parameter to the `verifyNoNilFields` JSDoc
example.

Change-Type: patch
Changelog-Entry: Add missing name param to verifyNoNilFields JSDoc example.
This commit is contained in:
Benedict Aas 2018-02-26 11:34:46 +00:00 committed by GitHub
parent d233558b44
commit 4e112dc98c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ const packageJSON = require('../../package.json')
*
* @example
* const fields = [ 'type', 'percentage' ]
* verifyNoNilFields(action.data, fields)
* verifyNoNilFields(action.data, fields, 'flash')
*/
const verifyNoNilFields = (object, fields, name) => {
const nilFields = _.filter(fields, (field) => {