Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert function #15

Open
y0hami opened this issue Dec 19, 2018 · 0 comments
Open

convert function #15

y0hami opened this issue Dec 19, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@y0hami
Copy link
Owner

y0hami commented Dec 19, 2018

Add convert function

Converts specified keys into something else

const a = {
  testa: 1,
  b: 2,
  c: 3,
};

convert(a, 'testa', 'a'); // => { a: 1, b: 2, c: 3 }
const a = {
  testa: 1,
  testb: 2,
  c: 3,
};

convert(a, [
  'testa',
  'testb',
], [
  'a',
  'b',
]); // => { a: 1, b: 2, c: 3 }
@y0hami y0hami added the enhancement New feature or request label Dec 19, 2018
@y0hami y0hami self-assigned this Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant