forked from jackdclark/five
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfive.js
More file actions
executable file
·52 lines (41 loc) · 1.65 KB
/
five.js
File metadata and controls
executable file
·52 lines (41 loc) · 1.65 KB
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
(function () {
var five = function() { return 5; };
five.upHigh = function() { return '⁵'; };
five.downLow = function() { return '₅'; };
five.roman = function() { return 'V'; };
five.arabic = function() { return 'خمسة' };
five.croatian = function() { return 'pet' };
five.czech = function() { return 'pět' };
five.english = function() { return 'Five' };
five.finnish = function() { return 'viisi' };
five.french = function() { return 'cinq' };
five.german = function() { return 'fünf' };
five.irish = function() { return 'cúig' };
five.mongolian = function() { return 'таван' };
five.polish = function() { return 'pięć' };
five.slovenian = function() { return 'pet' };
five.swedish = function() { return 'fem' };
five.thai = function() { return 'ห้า' };
five.choctaw = function() { return 'tahlapi' };
five.piglatin = function() { return 'ivefay' };
five.italian = function() { return 'cinque' };
five.spanish = function() { return 'cinco' };
five.morseCode = function() { return 'di-di-di-di-dit' };
five.binary = function() { return '101'; };
five.octal = function() { return '5'; };
five.tooSlow = function() {
var returnIn = new Date(new Date().valueOf() + 555);
do {} while(new Date() < returnIn);
return five();
};
five.map = function(array) { return array.map(five); }
five.reduce = function(array) { return array.reduce(five); }
five.fab = function() {
return ["Juwan Howard","Ray Jackson","Jimmy King","Jalen Rose","Chris Weber"];
};
if(typeof module !== 'undefined' && module.exports) {
module.exports = five;
} else if (window) {
window.five = five;
}
}());