source:
trip-planner-front/node_modules/stylus/lib/functions/math-prop.js@
fa375fe
Last change on this file since fa375fe was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 238 bytes |
Line | |
---|---|
1 | var nodes = require('../nodes'); |
2 | |
3 | /** |
4 | * Get Math `prop`. |
5 | * |
6 | * @param {String} prop |
7 | * @return {Unit} |
8 | * @api private |
9 | */ |
10 | |
11 | function math(prop){ |
12 | return new nodes.Unit(Math[prop.string]); |
13 | } |
14 | math.params = ['prop']; |
15 | module.exports = math; |
Note:
See TracBrowser
for help on using the repository browser.