Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
Module @welshman/lib
@welshman/lib
Some general-purpose utilities for use in @welshman apps.
Includes:
LRU cache implementation
Worker for throttling work to avoid locking up the UI
URL normalization (taken from normalize-url)
A global
ctx
variable which can be used for global configuration
CustomPromise, which provides an error type, and
defer
utility
Ramda-like utilities, but without auto-currying
Utils for throttling, working with nil, json, fetch, deep equals, etc.
Classes
Emitter
LRUCache
Worker
Type Aliases
CustomPromise
Deferred
Maybe
Nil
WorkerOpts
Variables
ctx
DAY
HOUR
MINUTE
MONTH
QUARTER
WEEK
YEAR
Functions
add
addToKey
addToMapKey
ago
always
append
assoc
avg
batch
batcher
bech32ToHex
between
cached
choice
chunk
chunks
clamp
complement
concat
dec
defer
difference
displayDomain
displayUrl
div
drop
ellipsize
ensureNumber
ensurePlural
eq
equals
fetchJson
ffirst
first
flatten
fromPairs
getJson
groupBy
gt
gte
hash
hexToBech32
identity
ifLet
inc
indexBy
initArray
insert
int
intersection
isIterable
isNil
isPojo
last
lt
lte
makePromise
mapKeys
mapVals
max
memoize
mergeLeft
mergeRight
min
ms
mul
ne
noop
normalizeUrl
not
now
nth
nthEq
nthNe
num
omit
omitVals
once
parseJson
partition
pick
pluck
postJson
prop
pushToKey
pushToMapKey
randomId
randomInt
range
remove
sample
setContext
setJson
shuffle
simpleCache
sleep
sort
sortBy
spec
splitAt
stripProtocol
sub
sum
switcher
take
throttle
throttleWithValue
toggle
toIterable
tryCatch
union
uniq
uniqBy
uploadFile
within
without
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
@welshman/lib version
Classes
Emitter
LRUCache
Worker
Type Aliases
Custom
Promise
Deferred
Maybe
Nil
Worker
Opts
Variables
ctx
DAY
HOUR
MINUTE
MONTH
QUARTER
WEEK
YEAR
Functions
add
add
To
Key
add
To
Map
Key
ago
always
append
assoc
avg
batch
batcher
bech32
To
Hex
between
cached
choice
chunk
chunks
clamp
complement
concat
dec
defer
difference
display
Domain
display
Url
div
drop
ellipsize
ensure
Number
ensure
Plural
eq
equals
fetch
Json
ffirst
first
flatten
from
Pairs
get
Json
group
By
gt
gte
hash
hex
To
Bech32
identity
if
Let
inc
index
By
init
Array
insert
int
intersection
is
Iterable
is
Nil
is
Pojo
last
lt
lte
make
Promise
map
Keys
map
Vals
max
memoize
merge
Left
merge
Right
min
ms
mul
ne
noop
normalize
Url
not
now
nth
nth
Eq
nth
Ne
num
omit
omit
Vals
once
parse
Json
partition
pick
pluck
post
Json
prop
push
To
Key
push
To
Map
Key
random
Id
random
Int
range
remove
sample
set
Context
set
Json
shuffle
simple
Cache
sleep
sort
sort
By
spec
split
At
strip
Protocol
sub
sum
switcher
take
throttle
throttle
With
Value
toggle
to
Iterable
try
Catch
union
uniq
uniq
By
upload
File
within
without
Welshman Docs
Loading...