Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@do-while-for-each/common

dwfe404MIT3.0.3TypeScript support: included

Common functionality

readme

async

delayAsync
timeout
debounce
throttle
nextTick
rAFQueueLast

converter

strToBase64
base64ToStr B64: fromUrl, decodeUnicode, encodeUnicode

event-emitter

EventEmitter, Listener

observable things:

  • createObsObject() => IObsObject & T
  • createObsArray() => IObsArray
  • createObsMap() => IObsMap
  • createObsSet() => IObsSet

object

getPropDescriptor
recognizePropType, IPropType

type

isEqual, IEqualityCheckOpt
isJustObject, isNotJustObject
isPrimitive, isNotPrimitive
isPrimitiveTypeWrapper

isFunction
isSomethingANumber
isString

ungrouped

assert
cloneSimple
getExecFunctionName
guid
millisecToMinWithSec, strMillisecToMinWithSec
noop, noop2, noop3, noop4, noop5, noop6, noop7
randomIntFromRange, randomIntFromRangeExclude

url

complementPath
IPath, IPathnameParams
getURL
hasProtocol
isPathEqual
normalizePath
normalizePathname
normalizeHash
normalizeSearch
pathStrFromUrlStr
pathToString

contracts

IClassConstructor
IStoppable
IDisposable
IRunMode
IAnyObject
ISuccess, IFailure, IResult, SUCCESS, FAILURE

changelog

2.0.1 (2023-01-02)

  • seems to have grouped everything better than it was
  • finally added the CHANGELOG file

actions

  • add assert - throw an error if the expression passed into the function is false
  • move divideWithoutRemainder to @do-while-for-each/math package