oramics/dsp-kit

View on GitHub
packages/signal/lib/core.js

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * Get value of a signal
 * @param {Function|Number} signal
 * @return {Number}
 * @private
 */
export function val (s) {
  return typeof s === 'function' ? s() : parseFloat(s)
}