Skip to content

Noodle GetBaseType() Method

Dan Kranz edited this page Sep 20, 2021 · 2 revisions

Returns the dataset type

Dataset types include: "Array", "Object", and "NoodleDatabase"

Syntax

GetBaseType()

Parameter Values

None

Example

var items = [
  ["1","Vegetable","Tree","1"],
  ["2","Animal","Bird","1"],
  ["3","Mineral","Diamond","1"],
  ["4","Vegetable","Flower","1"],
  ["5","Vegetable","Grass","1"],
  ["6","Animal","Cat","1"],
  ["7","Animal","Dog","1"],
  ["8","Mineral","Ruby","1"],
  ["9","Mineral","Quartz","1"]
];
var db1 = new Noodle(items, ["Seq","Category","Item","Count"]);

var baseType = db1.GetBaseType();  // Returns "Array"
Clone this wiki locally