Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-array-yanzhi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-array-yanzhi - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

dist/ts-array-yanzhi.d.ts

@@ -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,
};

2

package.json
{
"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,
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc