-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandbox.js
56 lines (44 loc) · 979 Bytes
/
sandbox.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
45
46
47
48
49
50
51
52
53
54
55
56
/*
const {
isPalindrome,
} = require('./lib');
console.log(isPalindrome('Was it a car or a cat I saw'));
*/
/*
const {
trimString,
} = require('./lib');
console.log(trimString(' Some random string with spaces inside and outside '));
*/
/*
const {
makeArrayUnique,
} = require('./lib');
console.log(makeArrayUnique([1, 2, 1, 6, 7, 7, 1, 8]));
console.log(makeArrayUnique([ 'str1', 'str2', 'str3', 'str1', 'str1' ]));
*/
/*
const {
objectLogger,
} = require('./lib');
let objToLog = {};
let loggedObj = objectLogger(objToLog);
loggedObj.name = 'Evgeni';
loggedObj.age = 38;
*/
/*
const {
numbersAreNearlyEqual,
} = require('./lib');
const num1 = 0.1 + 0.2;
const num2 = 0.3;
console.log(num1 === num2);
console.log(numbersAreNearlyEqual(num1, num2));
*/
const {
createMatrixOfSymbols,
createSlicedMatrixOfSymbols,
} = require('./lib');
// createMatrixOfSymbols(10, '&');
createSlicedMatrixOfSymbols(5, '*');
createSlicedMatrixOfSymbols(10, '=', false);