@24vlh/ts-helpers
v1.0.3
Published
Small footprint library that helps with repetitive tasks.
Downloads
11
Readme
Typescript helpers
Small footprint library that helps with repetitive tasks.
Installation
npm i --save @24vlh/ts-helpers
Usage
import {DeepObjectScan} from '@24vlh/ts-helpers/deep-object-scan';
import {OfNumberType} from '@24vlh/ts-assert/number';
console.log(
DeepObjectScan('a.b.c', {a: {b: {c: 1}}}, OfNumberType)
);
// shall output 1
List of helpers
Helpers
- DeepCopyPrimitive
- DeepCopy
- DeepObjectScan
- MoveArrayEntryIndex
- ReadObjectProperty
- SaveAs
- SaveAsPrimitive
- SaveAsBlob
- SaveAsText
- SaveAsJson
- SaveAsCsv
- SaveAsXml
- SaveAsHtml
- SaveAsImage
- SaveAsCanvas
- SaveAsPdf
- SaveAsAudio
- SaveAsVideo
- SaveAsFile
- SaveAsArrayBuffer
- SaveAsBlobParts
@vlah.io