-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListFormat.cljs
51 lines (36 loc) · 1.64 KB
/
ListFormat.cljs
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
(ns js.ListFormat
"The Intl.ListFormat object is a constructor for objects that
language-sensitive list formatting."
(:refer-clojure :exclude []))
(defn supported-locales-of
"Method.
The Intl.ListFormat.supportedLocalesOf() method returns an array
those of the provided locales that are supported in date and
formatting without having to fall back to the runtime's default
`Intl.ListFormat.supportedLocalesOf(locales[, options])`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat/supportedLocalesOf`"
[this & args]
(-> this .-supportedLocalesOf (.apply this (clj->js args))))
(defn intl
"Method.
The format() method returns a string that has been formatted
on parameters provided in the Intl.ListFormat object. The locales
options parameters customize the behavior of format() and let
specify the language conventions that should be used to format
list.
`listFormat.format([list]);`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat/format`"
[this & args]
(-> this .-Intl (.apply this (clj->js args))))
(defn prototype
"Property.
See `js.ListFormat` for a description of Intl.ListFormat instances.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat/prototype`"
[this]
(-> this (.-prototype)))
(defn set-prototype!
"Property.
See `js.ListFormat` for a description of Intl.ListFormat instances.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ListFormat/prototype`"
[this val]
(aset this "prototype" val))