TypeScript

by stevebeauge

HTML

<div id="app"></div>

CSS

body {
  background: #20262E;
  padding: 20px;
  font-family: Helvetica;
}

#app {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s;
  text-align: center;
}

TypeScript

const data =  [ {
	"X": 10, "Y": 10, "Value"="foo"
  },
  {
	"X": 20, "Y": 5, "Value"="bar"
  }, {
	"X": 30, "Y": 15, "Value"="kitty"
  }  
];


const first = data.filter((element, index, array)=>{
	return true;
});

console.log(first);