Skip to content

FixedSet is not a constructor #1

@trasherdk

Description

@trasherdk
var FixedSet = require("@magic8bot/fixedset") ;

var data = [
  { "o": 10.0, "h":15.0, "l":9.5, "c":11.0 },
  { "o": 11.0, "h":12.5, "l":9.8, "c":12.0 },
  { "o": 12.0, "h":15.5, "l":10.5, "c":13.0 },
  { "o": 13.0, "h":16.0, "l":10.5, "c":14.0 }
];

var fixedset = new FixedSet(5, data);

console.log(fixedset);

Results in:

var fixedset = new FixedSet(5, data);
                 ^

TypeError: FixedSet is not a constructor

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