-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patht.js
More file actions
34 lines (34 loc) · 691 Bytes
/
Copy patht.js
File metadata and controls
34 lines (34 loc) · 691 Bytes
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
var print,abs,all,any,basestring,bin;
bin=function (x) {
return [ +x].toString(2)
};
basestring=function (s) {
return String(s)
};
any=function (iter_) {
var is_true, is_true;
is_true = function(i) {
return i==true
};
return iter_.some(is_true)
};
all=function (iter_) {
var is_true, is_true;
is_true = function(i) {
return i==true
};
return iter_.every(is_true)
};
abs=function (n) {
return Math.abs(n)
};
print=function (msg) {
console.log(msg)
};
print(bin(15));
module.exports.print=print;
module.exports.abs=abs;
module.exports.all=all;
module.exports.any=any;
module.exports.basestring=basestring;
module.exports.bin=bin