@formily/shared
Advanced tools
Comparing version 1.0.2 to 1.0.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var types_1 = require("./types"); | ||
exports.toArr = function (val) { return (types_1.isArr(val) ? val : val ? [val] : []); }; | ||
exports.toArr = function (val) { return [].concat(val || []); }; | ||
function each(val, iterator, revert) { | ||
@@ -6,0 +6,0 @@ if (types_1.isArr(val) || types_1.isStr(val)) { |
{ | ||
"name": "@formily/shared", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "dd8ec3e3b51bd41c06f3fad974eb2b2023461747", | ||
"gitHead": "2d3cf73f5b913785015b3d46853349f38cbc0004", | ||
"scripts": { | ||
@@ -24,0 +24,0 @@ "build": "tsc --declaration" |
@@ -34,4 +34,3 @@ import { isArr, isObj, isStr } from './types' | ||
export const toArr = (val: any): any[] => (isArr(val) ? val : val ? [val] : []) | ||
export const toArr = (val: any): any[] => [].concat(val || []) | ||
export function each( | ||
@@ -38,0 +37,0 @@ val: string, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46666