![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@codegateinc/g-utils
Advanced tools
gUtils is a javascript library that contains functions to make your life simpler
Just simply run in console
yarn add @codegateinc/g-utils
or npm install @codegateinc/g-utils
import { G } from 'gUtils'
G.is(String, 'test') -> this returns true
function | props | description |
---|---|---|
compose | (Array<Function>) | calls functions in reversed order |
cond | <T = any, S = any>(array: Array<CondItem<T, S>>) | replaces switch with array of conditions |
isDefined | (subject: any) | check if given value is defined and not nullable |
ifDefined | <T = any>(subject: any, then: (subject: T) => void) | calls the function if predicate is defined |
call | (fn: Function) | calls given fn function |
T | none | returns empty function |
always | <T>(subject: any) | always returns given value |
hasKeys | (subject: any) | checks if object has any keys |
toPairs | <T extends {}>(subject: {[key: string]: any}) | extracts object to array of key value tuple |
fromPairs | <T extends {}>(subject: Array<[string, any]>) | returns object made from Array of key value tuple |
clearObject | (subject: {[key: string]: any}) | clears object from nullable or undefined values |
values | <T extends {}>(subject: {[key: string]: any}) | returns object's values as Array |
is | (type: any, subject: any) | validates if give value has provided type |
all | (Array<boolean>) | check if all passed arguments are truthy |
hasElements | (subject: any): boolean | check if given value is array and has got any elemnts |
compareFunctions | (a: Function, b: Function): boolean | check if given functions are the same |
FAQs
This library is a package of useful functions
We found that @codegateinc/g-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.