14 lines
209 B
JavaScript
14 lines
209 B
JavaScript
|
var nodes = require('../nodes');
|
||
|
|
||
|
/**
|
||
|
* Get Math `prop`.
|
||
|
*
|
||
|
* @param {String} prop
|
||
|
* @return {Unit}
|
||
|
* @api private
|
||
|
*/
|
||
|
|
||
|
module.exports = function math(prop){
|
||
|
return new nodes.Unit(Math[prop.string]);
|
||
|
};
|