Skip to content

Possible to convert an array directly? #13

@jimmiejackson414-zz

Description

@jimmiejackson414-zz

Just discovered that I'm unable to convert an array unfortunately.

const data = [
  { id: 1, user_id: 1, created_at: '2021-07-20T15:40:20.170121+00:00'}, 
  {id: 2, user_id: 2, created_at: '2021-07-20T15:40:20.170121+00:00'},
];

const response = camelKeys(data, {
  recursive: true,
  recursiveInArray: true,
});
console.log(response); // returns null

Are there any plans to allow for this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions