UNPKG
tranz
Version:
latest (0.6.0)
0.6.0
0.5.0
0.4.3
0.4.2
0.4.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
The framework for transform anything
github.com/imcuttle/tranz
imcuttle/tranz
tranz
/
src
/
presets
/
_json-parse.ts
13 lines
(11 loc)
•
222 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** *
@file
json
-parse *
@author
Cuttle Cong *
@date
2018/9/29 * */
export
default
function
parse
(
{ reviver }: { reviver?: any } = {}
) {
return
function
(
input
) {
return
JSON
.
parse
(
String
(input), reviver) } }