vue-json-compare
Advanced tools
Comparing version
'use strict' | ||
module.exports = require('./jsonCompare.vue') | ||
module.exports = require('./src/vuejsoncompare.vue') |
{ | ||
"name": "vue-json-compare", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "A vue(2.x) components for compare JSON data", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -30,3 +30,6 @@ export const isArray = (item) => { | ||
export const type = (item) => { | ||
return Object.prototype.toString.call(item) | ||
let type = Object.prototype.toString.call(item) | ||
let match = /(?!\[).+(?=\])/g | ||
type = type.match(match)[0].split(' ')[1] | ||
return type | ||
} |
Sorry, the diff of this file is not supported yet
79563
36.14%108
315.38%9
-10%