Skip to content

Commit

Permalink
👮
Browse files Browse the repository at this point in the history
  • Loading branch information
demiazz committed Jun 11, 2017
1 parent 451c16e commit a16a29b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/manipulation/append.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare function append(
...insertables: Array<Insertable>
): void;

export default function append(element) {
function append(element) {
const insertables = Array.prototype.slice.call(arguments, 1);

insertables.forEach(insertable => {
Expand All @@ -37,3 +37,5 @@ export default function append(element) {
}
});
}

export default append;
4 changes: 3 additions & 1 deletion src/manipulation/prepend.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare function prepend(
...insertables: Array<Insertable>
): void;

export default function prepend(element) {
function prepend(element) {
const insertables = Array.prototype.slice.call(arguments, 1);

insertables.reverse().forEach(insertable => {
Expand All @@ -37,3 +37,5 @@ export default function prepend(element) {
}
});
}

export default prepend;

0 comments on commit a16a29b

Please sign in to comment.