math-prop.js 238 Bytes
Newer Older
Kriengkrai Yothee's avatar
Kriengkrai Yothee committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
var nodes = require('../nodes');

/**
 * Get Math `prop`.
 *
 * @param {String} prop
 * @return {Unit}
 * @api private
 */

function math(prop){
  return new nodes.Unit(Math[prop.string]);
}
math.params = ['prop'];
module.exports = math;