About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
lib
samual.uk
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
[READ-ONLY] Mirror of
https://github.com/samualtnorman/lib
. A collection of common utilities I need.
www.npmjs.com/package/@samual/lib
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
lib
/
src
/
sigmoid.ts
94 B
·
2 lines
TypeScript
at
temp
Blame
Download
Open raw file
Samual Norman
·
add `retry()` which takes an async function and tries again a few times if it throws add `fetch()` which either imported `node-fetch` or just uses native `fetch()` depending tweak linting update dependencies reformat some code a little bit hide some files that shouldn't be edited in vs code simplify `scripts/build-package-json.js` and replace with better `package.json` `"exports"` rules add missing `export`s to `index.ts`
·
4y ago
a6aa95ef
1
2
3
export
const
sigmoid
=
(input
:
number
)
=>
1
/
(
1
+
(
Math
.
E
**
-
input))
export
default
sigmoid