src/engine/inject/numbers.js
function injectNumbers (funcs, task) {
  /**
   * Inject a function that returns a number.
   */

  function inject (taskKey) {
    var taskName = task[taskKey]

    var num = parseFloat(taskName)

    if (!isNaN(num)) {
      funcs[taskName] = function () { return num }
    }
  }

  Object.keys(task)
    .forEach(inject)
}
function injectNumbers (funcs, task) {
  /**
   * Inject a function that returns a number.
   */

  function inject (taskKey) {
    var taskName = task[taskKey]

    var num = parseFloat(taskName)

    if (!isNaN(num)) {
      funcs[taskName] = function () { return num }
    }
  }

  Object.keys(task)
    .forEach(inject)
}
function injectNumbers ( funcs , task ) { /**
   * Inject a function that returns a number.
   */ function inject ( taskKey ) { var taskName = task [ taskKey ] var num = parseFloat ( taskName ) if ( ! isNaN ( num ) ) { funcs [ taskName ] = function ( ) { return num } } } Object . keys ( task ) . forEach ( inject ) }
Inject functions that return numbers.

@param {Object} funcs reference
@param {Object} task collection
Inject functions that return numbers .