source: trip-planner-front/node_modules/stylus/lib/functions/math-prop.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 238 bytes
RevLine 
[6a3a178]1var nodes = require('../nodes');
2
3/**
4 * Get Math `prop`.
5 *
6 * @param {String} prop
7 * @return {Unit}
8 * @api private
9 */
10
11function math(prop){
12 return new nodes.Unit(Math[prop.string]);
13}
14math.params = ['prop'];
15module.exports = math;
Note: See TracBrowser for help on using the repository browser.