Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
g1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
76
Issues
76
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cto
g1
Commits
00406a5a
Commit
00406a5a
authored
Jan 24, 2019
by
Tejesh P
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC: add convert: true example in g1.types docs, fixes
#139
parent
4dd5a74f
Pipeline
#74342
passed with stage
in 2 minutes and 22 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
docs/types.md
docs/types.md
+4
-2
No files found.
docs/types.md
View file @
00406a5a
...
...
@@ -4,10 +4,12 @@
```
js
var
data
=
[
{
a
:
1
,
b
:
1.1
,
c
:
'
c
'
,
d
:
'
2014-04-04
'
,
e
:
true
},
{
a
:
1
,
b
:
1.1
,
c
:
'
c
'
,
d
:
'
2014-04-04
'
,
e
:
true
,
f
:
new
Date
()
},
{
a
:
2
,
b
:
2
},
]
g1
.
types
(
data
)
// Returns {"a": "number", "b": "number", "c": "string", "d": "date", "e": "boolean"}
g
.
types
(
data
)
// {"a":"number","b":"number","c":"string","d":"string","e":"boolean","f":"date"}
g1
.
types
(
data
,
{
convert
:
true
})
// {"a":"number","b":"number","c":"string","d":"date","e":"boolean","f":"date"}
```
## g1.types options
...
...
Tejesh
🖖
@tejesh.p
mentioned in issue
#139 (closed)
·
Jan 24, 2019
mentioned in issue
#139 (closed)
mentioned in issue #139
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment