Skip to content
Myr

removed invalidParamReturnValue()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent e78dc18 · Browse files · 1 file+0 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−18 removed

  • other:+0 added−18 removed

1 file+0 added−18 removed

modified:lib/router/index.js-18 removed
379 unmodified lines
380 (this.routes[method] = this.routes[method] || [])381 .push(route);382 return this;383};384385/**386 * Check if `val` is an invalid return value, aka:387 *388 * - is `null` or `undefined`389 * - is `false`390 * - is `NaN`391 *392 * @param {Mixed} val393 * @return {Boolean}394 * @api private395 */396397function invalidParamReturnValue(val){398 return null == val399 || false === val400 || ('number' == typeof val && isNaN(val));401};