@resller8/tulbox

0.0.28 • Public • Published

tulbox

Tulbox contains the functions or methods to simplify the

Getting Started

Simply install via npm:

npm install @resller8/tulbox

Usage

convertTime

convertTime(new Date(), 'MM-DD-YYYY', 'YYYY-MM-DD')

convertJsonChildToString

    convertJsonChildToString({
                    id: 7,
                    firstName: 'Manny',
                    lastName: 'Tiu',
                    phone: 3444344
                },['id'])

lowercaseKeys

    lowercaseKeys({
        Id: 6,
        Parents: {
        Name: 'Tun',
        Address: 'China'
        }
    })

filterSingleObjects

    filterSingleObjects(
        {
            id: 7,
            firstName: 'Manny',
            lastName: 'Tiu',
            phone: 3444344
        },
        ['lastName']
    )

filterArrayObjects

    filterArrayObjects(
        [
        {
            id: 7,
            firstName: 'Manny',
            lastName: 'Tiu',
            phone: 3444344
        },
        {
            id: 7,
            firstName: 'Manny',
            lastName: 'Tiu',
            phone: 3444344
        }
        ],
        ['lastName']
    )

forwardSplit

    forwardSplit("test -> data")

Readme

Keywords

none

Package Sidebar

Install

npm i @resller8/tulbox

Weekly Downloads

0

Version

0.0.28

License

MIT

Unpacked Size

9.96 kB

Total Files

6

Last publish

Collaborators

  • resller8