| 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
$3
npm install @ygracs/bsfoc-lib-js
Content
> Notes on upgrade to
v0.3.0
> > The
v0.3.0 is 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-js package.
$3
- 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
$3
- 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