Movatterモバイル変換


[0]ホーム

URL:


is-async-function
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

github actionscoveragedependency statusdev dependency statusLicenseDownloads

npm badge

Is this a nativeasync function?

Example

varisAsyncFunction=require('is-async-function');assert(!isAsyncFunction(function(){}));assert(!isAsyncFunction(null));assert(!isAsyncFunction(function*(){yield42;returnInfinity;}));assert(isAsyncFunction(asyncfunction(){}));

Tests

Simply clone the repo,npm install, and runnpm test

Package Sidebar

Install

npm i is-async-function

Weekly Downloads

23,835,694

Version

2.1.1

License

MIT

Unpacked Size

23.3 kB

Total Files

11

Last publish

Collaborators

  • ljharb
  • tunnckocore

[8]ページ先頭

©2009-2025 Movatter.jp