14 lines
202 B
JavaScript
14 lines
202 B
JavaScript
class Boxed {
|
|
constructor(type, value) {
|
|
this.type = type;
|
|
this.value = value;
|
|
}
|
|
}
|
|
|
|
export const boxed = (type, value) => {
|
|
return new Boxed(type, value);
|
|
};
|
|
|
|
export default {
|
|
boxed,
|
|
};
|