global-modulize
Version:
Make it easy to import any file by using config file.
24 lines (16 loc) • 360 B
JavaScript
// default
export default (s) => s.split('').reverse().join('');
// boolean
export const bool = true;
// string
export const string = 'string';
// number
export const number = 1991;
// array
export const array = [1, 2, 3, 4, 5];
// object
export const object = {
language: 'JavaScript',
};
// function
export const upperCase = (s) => s.toUpperCase();