{"_id":"evaluate-value","_rev":"15-ecbe49d7574e5603132dd633a44ff339","name":"evaluate-value","dist-tags":{"rc":"3.0.0-rc","rc2":"3.0.0-rc2","rc3":"3.0.0-rc3","latest":"3.0.0"},"versions":{"1.0.0":{"name":"evaluate-value","version":"1.0.0","keywords":["function","options","value"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@1.0.0","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"dc23f3d4e73fb1d7fa3dd6a0aaba3dbf9b5d2980","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-1.0.0.tgz","integrity":"sha512-NJQOdICtdmNislmZivbB8Uy0qRL0N0Ud+FQxVNWQIUKxLIOSZUA/p9Km9ihuhA1HeQN8IgDcFD/mRKkAzEFP7Q==","signatures":[{"sig":"MEUCIQC0kvBeOes9pPefdCy2DtMV/VWP0Eu5+TQlzTJyUpPKGgIgW2uz5nXLxopE6t3yPIkD7Lob3zOdhm7/+QvfqR8x2DU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/url-node","_from":".","files":["index.js"],"_shasum":"dc23f3d4e73fb1d7fa3dd6a0aaba3dbf9b5d2980","engines":{"node":">= 6"},"gitHead":"f222917f6aec510c0b196fb729cbbe2342d634d5","scripts":{"test":"mocha test --reporter spec --check-leaks --bail"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"4.1.2","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"8.0.0-nightly20170218ca37ec084a","devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value-1.0.0.tgz_1487813390164_0.6003531268797815","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"evaluate-value","version":"1.0.1","keywords":["function","options","value"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@1.0.1","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"95cdeb7801bc80c175e379e3512464501e223a1d","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-1.0.1.tgz","integrity":"sha512-nIw4drvCwKHWNRWlUOyqEgoI611wo4cCGIREewdtkPZzSZF9OV2mev+tpk5tnd4MqE1Oo2TQ+R3+wTgD6DByow==","signatures":[{"sig":"MEUCIE794pptnVm4LGCiKjAixYy/3pxEH8+4IaSwTOF28gz9AiEAl3c+hDraRaQzTk9JzsSRfrQGuLXVo9taxx/3a5ZHilc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib","_from":".","files":["lib"],"_shasum":"95cdeb7801bc80c175e379e3512464501e223a1d","engines":{"node":">= 4"},"gitHead":"1d2e51b679b3ca6653c789497e3d994bed158c4b","scripts":{"test":"npm run build && mocha test --reporter spec --check-leaks --bail","build":"babel src --out-dir=lib --presets=es2015","pre-publish":"npm test"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"4.1.2","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"8.0.0-nightly20170218ca37ec084a","devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","babel-cli":"^6.23.0","babel-preset-es2015":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value-1.0.1.tgz_1487892837964_0.6154055469669402","host":"packages-12-west.internal.npmjs.com"}},"1.0.2":{"name":"evaluate-value","version":"1.0.2","keywords":["function","options","value"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@1.0.2","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"50ed21ab867da96b59dcb7c063063b9d67b70448","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-1.0.2.tgz","integrity":"sha512-tZiwZ4+AD89Ct4tuxNBDfzQOR/VSO9fgV+u4K8hSm0zVstNY7fsFjaKkZrEnLJlCiXfu2zWr7rgf1cls/fOEAQ==","signatures":[{"sig":"MEQCIB/MQaJJTkD8gcmiq7hzA6s8k+bQ+x7R6NWkqrNoYNk3AiB2H4Tcff2+KGoS6lCo38xv6qzVysrHvSDsDkJDW/Lm2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib","_from":".","files":["lib"],"_shasum":"50ed21ab867da96b59dcb7c063063b9d67b70448","engines":{"node":">= 4"},"gitHead":"5efd2b586bb136a1a54f4e36647f66eabd5aad6c","scripts":{"test":"npm run build && mocha test --reporter spec --check-leaks --bail","build":"babel src --out-dir=lib --presets=es2015","prepublish":"npm test"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"4.1.2","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"8.0.0-nightly20170218ca37ec084a","devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","babel-cli":"^6.23.0","babel-preset-es2015":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value-1.0.2.tgz_1487895022391_0.27098874072544277","host":"packages-12-west.internal.npmjs.com"}},"2.0.0":{"name":"evaluate-value","version":"2.0.0","keywords":["function","options","value"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@2.0.0","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"bb7169ab4a49fb76b7ab5631c7d327797fd8e65f","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-2.0.0.tgz","fileCount":6,"integrity":"sha512-VonfiuDJc0z4sOO7W0Pd130VLsXN6vmBWZlrog1mCb/o7o/Nl5Lr25+Kj/nkCCAhG+zqeeGjxhkK9oHpkgTHhQ==","signatures":[{"sig":"MEUCIQC+xFQeKFr7TJ+DMpVoDBQlS9q5o1uF7GrWpic2bHkFpAIgf5xn7jfi4PjVkxGdz/NVfHIgpBMd49TaT36jzJNNPgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvfAtCRA9TVsSAnZWagAAdFkP/jewkkRBvy1CX8mJlN5d\nSGwLcksh2rn9XfVI07z1xC4NYPk0lw6wS61NCPvF0yusmd9DUNmjD/jV87sX\nsNz2FRqUYqQfGjNgFo1ob6XVOx98A8cqEh1z4gQCNP9mI/qJGZw6HpprBxrj\nTKtk9cJrCuirNYUlnkmtVnuZYr9FANvKtLpLcCQIQBCS3x9UBstm7dZjNdhr\nmcqYpNweiDjuzc0OloSZNM/Ebr2NFwvUjv6aGhUXAkwDa2qCcp50TsuRLfMI\nb8CoIJgHFyyKDncuYHP0j9FCTw5FlSnebDKYr3wU6xZMISHNSC43fPOgLEY7\nff1sCB2nZeLCK4EQHFOM/Do/9W+v0hKHQRBT7eNvRapTYularEk3dy6ZIntY\nP1cvy05kHBPmmbJyOdGfNo0mRt5uzCfZ+ClYbjkTe3FfJ9LDnjYi4nEPqPzx\nClMHdSMfETT6tLhAVSLQmtfrXzGrVQsA27dkoWYeyFSTGkC5wXGrnCR3NIk+\nho8it3MyeJ/rHXgDUqYZbj9ZtKRpXVWVoB6i42GOk3oy93N29t5xnrC8TQT+\nDDj6vHmlryAlA82Ciz/eLo1nVqRsZDf2D/HBch/CU6F2/mgi9pL+gNN+Df3A\nFXw+MSCtxQDxSDw4OgAzcdxlPaGmnf8JUG0HE7EWaWcJx6MBt1bIwJthTinj\npcf6\r\n=ja/k\r\n-----END PGP SIGNATURE-----\r\n"},"browser":"index-es5.js","engines":{"node":">= 8"},"gitHead":"b9b03dc328d5e76035c4383f1b17ea5d66b57f82","scripts":{"test":"mocha test.js --check-leaks --bail","prepublishOnly":"npm test && babel index.js --out-file=index-es5.js --presets=@babel/env --source-maps"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"6.7.0","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"11.13.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.1.4","@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value_2.0.0_1555951661289_0.750152013756388","host":"s3://npm-registry-packages"}},"3.0.0-rc":{"name":"evaluate-value","version":"3.0.0-rc","keywords":["function","options","value"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@3.0.0-rc","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"58346c3d2b02babd38c3083605d381e0245cf2fd","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-3.0.0-rc.tgz","fileCount":7,"integrity":"sha512-YOltAtq2ZnvZlsK8VrUViMoLbOhVssskshJJG+kBFUb5SVgrinspMHVHQaEXg3Voj0iJUgJiaNlMQCwUhWK9Hw==","signatures":[{"sig":"MEUCIQDHI8MnYc1bvLJVxVFfaG0NMONVDwIDaWHJ9MJ7J8a0BgIgb3ZwFllf7roUHXmD7+yea/u1gTDny3KQfVuxqgBe2ZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4440},"type":"module","engines":{"node":">= 22"},"exports":"./dist/index.js","gitHead":"b9b03dc328d5e76035c4383f1b17ea5d66b57f82","scripts":{"test":"npm run test:watch -- --reporter=verbose --run","build":"npm run build:spellcheck && npm run build:lint && npm run build:typecheck:supplemental && npm run build:compile","build:lint":"prettier --check '**/*.{config.js,json,md,ts}' '!dist/**'","test:watch":"vitest dev","build:compile":"tsc -p tsconfig.build.json","prepublishOnly":"npm run build && npm test","build:spellcheck":"cspell '**/*.{config.js,json,md,ts}' '!dist/**' '!node_modules/**' --no-progress","build:typecheck:supplemental":"tsc --project tsconfig.check.json"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"deprecated":"Use rc2","repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"11.12.1","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"cspell":"^10.0.1","vitest":"^4.1.10","prettier":"^3.9.6","typescript":"^7.0.2","@types/node":"^26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value_3.0.0-rc_1786912587738_0.5637054119237443","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-rc2":{"name":"evaluate-value","version":"3.0.0-rc2","keywords":["function","options","value"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@3.0.0-rc2","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"288d4ea71a68ccc6a25d9b339c7e9b9a1a667fa3","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-3.0.0-rc2.tgz","fileCount":7,"integrity":"sha512-yGrE0HRe3LqV6dL8yVLke3fu/MIZsgkh1WdrpQ+nBKOZMhIbH7ptRdTcm8wboZl0kppoP6Ed3lFGxcSmdLHP5Q==","signatures":[{"sig":"MEUCIQDTrrkW+kN7b3Hzi0xnGffdbA8jWWzvkMRNLs+lLBPriwIgNfuOeDYEdYKeiT9iRubuBNOhcfjACB+V1k6OPCWKs1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4474},"type":"module","engines":{"node":">= 22"},"exports":"./dist/index.js","gitHead":"b9b03dc328d5e76035c4383f1b17ea5d66b57f82","scripts":{"test":"npm run test:watch -- --reporter=verbose --run","build":"npm run build:spellcheck && npm run build:lint && npm run build:typecheck:supplemental && npm run build:compile","build:lint":"prettier --check '**/*.{config.js,json,md,ts}' '!dist/**'","test:watch":"vitest dev","build:compile":"tsc -p tsconfig.build.json","prepublishOnly":"npm run build && npm test","build:spellcheck":"cspell '**/*.{config.js,json,md,ts}' '!dist/**' '!node_modules/**' --no-progress","build:typecheck:supplemental":"tsc --project tsconfig.check.json"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"deprecated":"Use 3.0.0","repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"11.12.1","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"cspell":"^10.0.1","vitest":"^4.1.10","prettier":"^3.9.6","typescript":"^7.0.2","@types/node":"^26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value_3.0.0-rc2_1786987643244_0.853290719117564","host":"s3://npm-registry-packages-npm-production"}},"3.0.0-rc3":{"name":"evaluate-value","version":"3.0.0-rc3","keywords":["function","options","value"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@3.0.0-rc3","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"4ae4ae6f6ee5a890d3f97a8b5590249bfb1779f5","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-3.0.0-rc3.tgz","fileCount":7,"integrity":"sha512-AHH41PBcQnZp4jZz8P18wJJslkp+Dtx/2KJ7QBSKTdOO8Ujsjn+B/Nfhmb+9IgLGkfHRPYtORZ/Z2i3wId2Osg==","signatures":[{"sig":"MEUCIBK4K0BvzRmptHIJ2oKM0kJScnPxKr4JsPdb9u5iG2unAiEAt6Ce/nQh8lFcx4aoLxHQsUA/P+P42TmMFmGFGKw2wHU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4517},"type":"module","engines":{"node":">= 22"},"exports":"./dist/index.js","gitHead":"c3a1b62667942f05ea63ccff41f4d98a60f7e40f","scripts":{"test":"npm run test:watch -- --reporter=verbose --run","build":"npm run build:spellcheck && npm run build:lint && npm run build:typecheck:supplemental && npm run build:compile","build:lint":"prettier --check '**/*.{config.js,json,md,ts}' '!dist/**'","test:watch":"vitest dev","build:compile":"tsc -p tsconfig.build.json","prepublishOnly":"npm run build && npm test","build:spellcheck":"cspell '**/*.{config.js,json,md,ts}' '!dist/**' '!node_modules/**' --no-progress","build:typecheck:supplemental":"tsc --project tsconfig.check.json"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"11.12.1","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"cspell":"^10.0.1","vitest":"^4.1.10","prettier":"^3.9.6","typescript":"^7.0.2","@types/node":"^26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value_3.0.0-rc3_1786991928834_0.577778697426931","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use 3.0.0"},"3.0.0":{"name":"evaluate-value","version":"3.0.0","keywords":["function","options","value"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"evaluate-value@3.0.0","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/evaluate-value#readme","bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"dist":{"shasum":"c394d5f133982bb403fcf3383aa1372fd6654ebe","tarball":"https://registry.npmjs.org/evaluate-value/-/evaluate-value-3.0.0.tgz","fileCount":7,"integrity":"sha512-9pmdfzJXijeiBDXB5q36I9RrN1NvYHRjX2WsBb/bx/y/ANq2pT0h+Gm5FUC0MOMszFu0Af4LpDxkKPE4yLnmbg==","signatures":[{"sig":"MEYCIQDPXKp0ABvt2qSXs51td0jqVvbVjtq2jzQydIXWykgIRgIhAOXvWTTvBnoz2sLE6hsbFWmpGQWKLYBouSlqvfaMRknX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5115},"type":"module","engines":{"node":">= 22"},"exports":"./dist/index.js","gitHead":"c3a1b62667942f05ea63ccff41f4d98a60f7e40f","scripts":{"test":"npm run test:watch -- --reporter=verbose --run","build":"npm run build:spellcheck && npm run build:lint && npm run build:typecheck:supplemental && npm run build:compile","build:lint":"prettier --check '**/*.{config.js,json,md,ts}' '!dist/**'","test:watch":"vitest dev","build:compile":"tsc -p tsconfig.build.json","prepublishOnly":"npm run build && npm test","build:spellcheck":"cspell '**/*.{config.js,json,md,ts}' '!dist/**' '!node_modules/**' --no-progress","build:typecheck:supplemental":"tsc --project tsconfig.check.json"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"_npmVersion":"11.12.1","description":"Return a value or an evaluated function (with arguments).","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"cspell":"^10.0.1","vitest":"^4.1.10","prettier":"^3.9.6","typescript":"^7.0.2","@types/node":"^26.2.0"},"_npmOperationalInternal":{"tmp":"tmp/evaluate-value_3.0.0_1787429510652_0.7594442865336655","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2017-02-23T01:29:50.379Z","modified":"2026-08-22T20:28:01.776Z","1.0.0":"2017-02-23T01:29:50.379Z","1.0.1":"2017-02-23T23:33:58.187Z","1.0.2":"2017-02-24T00:10:22.827Z","2.0.0":"2019-04-22T16:47:41.399Z","3.0.0-rc":"2026-08-16T20:36:27.875Z","3.0.0-rc2":"2026-08-17T17:27:23.390Z","3.0.0-rc3":"2026-08-17T18:38:48.993Z","3.0.0":"2026-08-22T20:11:50.799Z"},"bugs":{"url":"https://github.com/stevenvachon/evaluate-value/issues"},"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","homepage":"https://github.com/stevenvachon/evaluate-value#readme","keywords":["function","options","value"],"repository":{"url":"git+https://github.com/stevenvachon/evaluate-value.git","type":"git"},"description":"Return a value or an evaluated function (with arguments).","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"readme":"# evaluate-value [![NPM Version][npm-image]][npm-url] ![Build Status][ghactions-image]\n\n> Return a value or an evaluated function (with arguments).\n\n- When the first input argument is a function, it is executed with the remaining arguments, and the result is returned.\n- When the first input argument is _not_ a function, it is simply returned.\n\n## Install\n\n```shell\nnpm install evaluate-value\n```\n\n## Usage\n\n```js\nimport evaluateValue from 'evaluate-value';\n\nevaluateValue(true); //-> true\n\nevaluateValue(() => true); //-> true\n\nevaluateValue((arg1, arg2) => arg1 + arg2, 2, 2); //-> 4\n```\n\nAn `EvaluateValueArgs` type is exposed for convenient wrapping:\n\n```ts\nimport { type EvaluateValueArgs } from 'evaluate-value';\n\ninterface Options {\n  prop: (arg: string) => boolean;\n}\n\nconst DEFAULT_OPTIONS: Options = {\n  prop: arg => arg === 'something',\n};\n\n/**\n * Fallback to the default value for a specific option if there's no custom value.\n */\nconst defaultFallback = <K extends keyof typeof DEFAULT_OPTIONS>(\n  options: Options | undefined,\n  name: K,\n  ...args: EvaluateValueArgs<Options[K]>\n) => evaluateValue(options?.[name], ...args) ?? evaluateValue(DEFAULT_OPTIONS[name], ...args);\n```\n\n[npm-image]: https://img.shields.io/npm/v/evaluate-value\n[npm-url]: https://npmjs.com/package/evaluate-value\n[ghactions-image]: https://img.shields.io/github/actions/workflow/status/stevenvachon/evaluate-value/test.yml\n","readmeFilename":"README.md"}