@ygracs/bsfoc-lib-js
v0.3.3
Published
A base set of helper functions and objects collection
Readme
| rev.: | 0.2.14 | |:----------- | ----------:| | date: | 2025-08-14 |
Introduction
This module provide a base set of a helper functions and an objects collection.
Use cases
Installation
npm install @ygracs/bsfoc-lib-js
Content
Notes on upgrade to
v0.3.0The
v0.3.0is not fully compatible with a previous one due to some breaking changes. For more details read the docs for a functions and a classes used in your project.Also a support for a lists and collections classes was moved to a
@ygracs/lists-lib-jspackage.
1. list of helper functions:
- logical functions:
- isValidIndex;
- isEmptyString;
- isEmptyOrNotString;
- isNotEmptyString;
- isNullOrUndef;
- isInteger;
- inRangeNum;
- special functions:
- tryNotNullish;
- readAsBoolEx;
- readAsNumberEx;
- other functions:
- valueToIndex;
- valueToIDString;
- tryToBool;
- tryToNumber;
- readAsBool;
- readAsNumber;
- readAsString;
- experimental functions:
- isValidId;
- isNotEmptyStringEx.
for more see "
baseFunc.md" in a package docs
2. list of object functions:
- logical functions:
- isArray;
- isObject;
- isPlainObject;
- isDateObject;
- isPropertyExists;
- isMethodExists;
- other functions:
- arrayFrom;
- valueToArray;
- valueToEntry;
- valueToEntries;
- readAsListE;
- readAsListS;
- experimental functions:
- doMethodIfExists;
- valueToArrayEx.
for more see "
baseObj.md" in a package docs
