iif-ts
Version:
A tiny utility function to conditionally insert elements into arrays or objects using the spread operator. Supports both eager and deferred evaluation.
26 lines • 659 B
JSON
{
"name": "iif-ts",
"version": "2.0.0",
"description": "A tiny utility function to conditionally insert elements into arrays or objects using the spread operator. Supports both eager and deferred evaluation.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "commonjs",
"keywords": [
"iif",
"include-if",
"conditional-spread",
"typescript",
"utility"
],
"author": "Islam Yamor",
"license": "ISC",
"devDependencies": {
"prettier": "^3.5.3",
"typescript": "^5.8.3"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "echo \"Error: no test specified\" && exit 1"
}
}