Add documentation for "type".

Closes #75.
This commit is contained in:
Stephen Dolan committed 2013-05-06 02:34:02 +01:00
1 parent 7f979cf1c7
commit cacda19e75
1 file changed
+12
+12
View File
@@ -537,6 +537,18 @@ sections:
input: '[1, "1", [1]]'
output: ['"1"', '"1"', '"[1]"']
- title: `type`
body: |
The `type` function returns the type of its argument as a
string, which is one of null, boolean, number, string, array
or object.
examples:
- program: 'map(type)'
input: '[0, false, [], {}, null, "hello"]'
output: ['["number", "boolean", "array", "object", "null", "string"]']
- title: `sort, sort_by`
body: |