Home Manual Reference Source

src/Item.js

import assert from 'assert';

export default function Item(weight, value) {
	assert(weight > 0);
	this.w = weight;
	this.v = value;
}