mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
14 lines
220 B
TypeScript
14 lines
220 B
TypeScript
const water = "Water";
|
|
function isWater(x) {
|
|
return x === water;
|
|
}
|
|
const mod = {
|
|
water: water,
|
|
isWater: isWater
|
|
};
|
|
function foo(x) {
|
|
return mod[x];
|
|
}
|
|
export { foo as foo };
|
|
export { isWater as isWater };
|