{
profile: {
soma: 20,
menor: 1
}
}After getProperties
| type Dictionary = { | |
| [name: string]: string; | |
| }; | |
| type Getter = { | |
| get: () => any; | |
| set: (value: any) => void; | |
| }; | |
| type Getters <T extends Dictionary> = { |
| // Fit text into an element, auto resize it's font-size. | |
| const DesignerFear = () => { | |
| }; | |
| export default DesignerFear; |
| import * as object from './object' | |
| export const toObject = (collection) => | |
| [ ...collection ].reduce(object.increase, {}) |
| const employees = [ | |
| { | |
| name: 'Renan', | |
| salary: 1000.00 | |
| }, | |
| { | |
| name: 'Vitor', | |
| salary: 980.50 | |
| }, | |
| { |
{
profile: {
soma: 20,
menor: 1
}
}After getProperties
| /** | |
| * Returns new object without specified properties. | |
| * @param {Array.<string>} keys | |
| * @param {Object.<string, *>} object | |
| * @returns {Object.<string, *>} | |
| */ | |
| const without = ( | |
| [ key, ...keys ] = [], | |
| { [key]: _, ...object } = {} | |
| ) => keys.length ? object : without(keys, object); |
| module User ( | |
| User | |
| ) where | |
| data User = User { | |
| name :: String, | |
| id :: String | |
| } |
| /** | |
| * Second in milliseconds. | |
| */ | |
| const SECOND = 1000 | |
| /** | |
| * Minute in milliseconds. | |
| */ | |
| const MINUTE = 60 * SECOND |