ts-array-yanzhi
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,7 +0,2 @@ | ||
declare const _default: { | ||
a: number; | ||
b: number; | ||
c: number; | ||
arrayMap: <T, U>(array: T[], callback: (item: T, index: number, arr: readonly T[]) => U) => U[]; | ||
}; | ||
declare const _default: <T, U>(array: T[], callback: (item: T, index: number, arr: readonly T[]) => U) => U[]; | ||
export = _default; |
"use strict"; | ||
var arrayMap = function (array, callback) { | ||
module.exports = function (array, callback) { | ||
var i = -1; | ||
@@ -12,10 +12,1 @@ var len = array.length; | ||
// export = arrayMap | ||
var a = 1; | ||
var b = 2; | ||
var c = 3; | ||
module.exports = { | ||
a: a, | ||
b: b, | ||
c: c, | ||
arrayMap: arrayMap, | ||
}; |
{ | ||
"name": "ts-array-yanzhi", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "yanzhi function", | ||
@@ -5,0 +5,0 @@ "main": "./dist/ts-array-yanzhi.js", |
@@ -1,2 +0,2 @@ | ||
const arrayMap = <T, U>( | ||
export = <T, U>( | ||
array: T[], | ||
@@ -15,11 +15,1 @@ callback: (item: T, index: number, arr: ReadonlyArray<T>) => U | ||
// export = arrayMap | ||
const a = 1 | ||
const b = 2 | ||
const c = 3 | ||
export = { | ||
a, | ||
b, | ||
c, | ||
arrayMap, | ||
} |
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
12028
7
126