Skip to content

TIME_FORMATS oject keys #94

@yairEO

Description

@yairEO

I don't find it elegant when TIME_FORMATS are written:

var TIME_FORMATS = [{
        name: 'second',
        value: 1e3
    }, {
        name: 'minute',
        value: 6e4
    }
}];

Instead of:

var TIME_FORMATS = {
    second : 1e3,
    minute: 6e4
};

Especially when the line after that is where LABELS_FOR_POWERS_OF_KILO is configured like how things should be configured. it's an odd choice when both dictionaries should serve the same purpose.

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