Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
385 bytes
|
Line | |
---|
1 | var utils = require('../utils');
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Unshift the given args to `expr`.
|
---|
5 | *
|
---|
6 | * @param {Expression} expr
|
---|
7 | * @param {Node} ...
|
---|
8 | * @return {Unit}
|
---|
9 | * @api public
|
---|
10 | */
|
---|
11 |
|
---|
12 | (module.exports = function(expr){
|
---|
13 | expr = utils.unwrap(expr);
|
---|
14 | for (var i = 1, len = arguments.length; i < len; ++i) {
|
---|
15 | expr.nodes.unshift(utils.unwrap(arguments[i]));
|
---|
16 | }
|
---|
17 | return expr.nodes.length;
|
---|
18 | }).raw = true;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.