Skip to content

Array values being transformed #7

Description

@tmclaugh

I'm not sure if the behavior regarding array values is correct.

https://github.com/BinaryThumb/change-case-object/blob/master/index.js#L9-L15

Arrays only contain values so if the value is a string, and not another object, is should likely have its case remain unchanged. I noticed this while trying to return some AWS EC2 instance information and found my instance IDs going from kebab case to snake case. How should this be handled? Optional flag on functions so compatibility is preserved?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions