Sha256: d79e20e28e41ab48e33a1d918e7b993dbbfb6779b79862f266b30dd40db2ced7

Contents?: true

Size: 385 Bytes

Versions: 41

Compression:

Stored size: 385 Bytes

Contents

var utils = require('../utils');

/**
 * Unshift the given args to `expr`.
 *
 * @param {Expression} expr
 * @param {Node} ...
 * @return {Unit}
 * @api public
 */

(module.exports = function(expr){
  expr = utils.unwrap(expr);
  for (var i = 1, len = arguments.length; i < len; ++i) {
    expr.nodes.unshift(utils.unwrap(arguments[i]));
  }
  return expr.nodes.length;
}).raw = true;

Version data entries

41 entries across 22 versions & 3 rubygems

Version Path
epuber-stylus-source-0.56.0 vendor/lib/functions/unshift.js
epuber-stylus-source-0.54.8 vendor/lib/functions/unshift.js
ela-4.1.6 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.6 node_modules/stylus/lib/functions/unshift.js
ela-4.1.5 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.5 node_modules/stylus/lib/functions/unshift.js
ela-4.1.4 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.4 node_modules/stylus/lib/functions/unshift.js
ela-4.1.3 node_modules/stylus/lib/functions/unshift.js
ela-4.1.3 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.2 node_modules/stylus/lib/functions/unshift.js
ela-4.1.2 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.1 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.1 node_modules/stylus/lib/functions/unshift.js
ela-4.1.0 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-4.1.0 node_modules/stylus/lib/functions/unshift.js
ela-4.0.0 node_modules/stylus/lib/functions/unshift.js
ela-4.0.0 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-3.4.3 node_modules/nib/node_modules/stylus/lib/functions/unshift.js
ela-3.4.3 node_modules/stylus/lib/functions/unshift.js