mirror of https://github.com/jkjoy/sunpeiwen.git
16 lines
238 B
JavaScript
16 lines
238 B
JavaScript
|
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;
|