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

t1_t2_fn

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t1_t2_fn

This package is a function with 3 arguments t1, t2, fun(), execution of argument 3 for t1 to t2

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
0
Weekly downloads
 
Created
Source

t1_t2_fn

This package is a function with 3 arguments t1, t2, fun(), execution of argument 3 for t1 to t2

Test Resalt

npm test

 PASS  src/executeRange.test.ts
  executeRange
    √ should execute the function at the correct intervals (8 ms)
    √ should execute the myPrint function correctly (3 ms)

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        2.53 s, estimated 3 s
Ran all test suites.

Author

Mohammad Hadi Email: mmm.6336@gmail.com

Donate address : TS3ZnWGHfDnW7FcG8p6BYrWAis2nzX3gDG //USDT TRC20

Make TypeScript project:

npm install typescript ts-node @types/node
npx tsc --init

Installation

npm

npm install t1_t2_fn

yarn

yarn add t1_t2_fn

Example use:



import { executeRange, myPrint } from 't1_t2_fn';

const from: number = 1;
const to: number = 10;
const everySecond: number = 2;

executeRange(from, to, everySecond, () => {
    myPrint(); // or console.log("..test...")
});

out:

when everySecond variable = 2

Test Print
Test Print
Test Print
Test Print
Test Print

when everySecond variable = 5

Test Print
Test Print

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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