You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemmionic5/Mohem/node_modules_/stylus/lib/functions/math-prop.js

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]);
};