Skip to content

js-quantities is incompatible with sugarjs and prototypejs #130

@kyrofa

Description

@kyrofa

When simplifying numerators/denominators, js-quantities uses an array as both an array and an object, setting properties on it. This makes js-quantities incompatible with libraries that extend Array.prototype, like sugarjs and prototypejs, in very surprising ways. For example:

> q = Qty('100 gal/min');
> q.scalar
100
> q.units()
'gal/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions