-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (41 loc) · 1.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export { MyParagraph } from './MyParagraph.js';
//class MyParagraph extends HTMLElement {
// constructor() {
// super();
//
// const template = document.getElementById('my-paragraph');
// const templateContent = template.content;
//
// this.attachShadow({mode: 'open'}).appendChild(
// templateContent.cloneNode(true)
// );
// }
//}
//module.exports = function mergesort(items) {
//
// var merge = function (left, right){
// var result = [];
//
// while (left.length > 0 && right.length > 0){
// if (left[0] < right[0]){
// result.push(left.shift());
// } else {
// result.push(right.shift());
// }
// }
//
// return result.concat(left).concat(right);
// }
//
//
// if (items.length == 1) {
// return items;
// }
//
// var middle = Math.floor(items.length / 2),
// left = items.slice(0, middle),
// right = items.slice(middle);
//
// return merge(mergesort(left), mergesort(right));
//
//};