Skip to content

robbertvancaem/object-transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-transform

A small set of utility functions that can be used to transform an object. For now it exports a function capitalizeKeys that can be used to capitalize keys in an object.

Usage

import { capitalizeKeys } from 'object-transform'

const input = {
  myKey: 'bla',
  myArray: [{
    myProp: 'bloe'
  }, {
    myProp: 'blegh'
  }]
};
const transformed = capitalizeKeys(input)

console.log(transformed);

/*
>> {
  MyKey: 'bla',
  MyArray: [{
    MyProp: 'bloe'
  }, {
    MyProp: 'blegh'
  }]
}
 */

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published