File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var toArray = require('../parsing/toArray');
55
66/**
77 * Serialize an array of arrays into a string
8- * @param {[]|[[]] } array - An array of arrays.
8+ * @param {string[] | Array.<Array.<string>> } array - An array of arrays.
99 * If the first element is not an array the argument is wrapped in an array.
1010 * @returns {string } A string representation of the arrays.
1111 */
Original file line number Diff line number Diff line change @@ -135,9 +135,11 @@ function textStyle(layer) {
135135}
136136
137137/**
138- * Normalize an offset value
139- * @param {String } expression a decimal value which may have a 'p' or '%' postfix. E.g. '35%', '0.4p'
140- * @return {Object|String } a normalized String of the input value if possible otherwise the value itself
138+ * Normalize an expression string, replace "nice names" with their coded values and spaces with "_"
139+ * e.g. `width > 0` => `w_lt_0`
140+ *
141+ * @param {String } expression An expression to be normalized
142+ * @return {Object|String } A normalized String of the input value if possible otherwise the value itself
141143 */
142144function normalize_expression ( expression ) {
143145 if ( ! isString ( expression ) || expression . length === 0 || expression . match ( / ^ ! .+ ! $ / ) ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var isArray = require('lodash/isArray');
55/**
66 * @desc Turns arguments that aren't arrays into arrays
77 * @param arg
8- * @returns {*[]|* }
8+ * @returns { any | any[] }
99 */
1010function toArray ( arg ) {
1111 switch ( true ) {
You can’t perform that action at this time.
0 commit comments