MCPcopy Index your code
hub / github.com/github/docs / removeInputProps

Function removeInputProps

script/content-migrations/use-short-versions.js:114–119  ·  view source on GitHub ↗
(arrayOfObjects)

Source from the content-addressed store, hash-verified

112
113// Convenience function to help with readability by removing this large but unneded property.
114function removeInputProps(arrayOfObjects) {
115 return arrayOfObjects.map((obj) => {
116 delete obj.input || delete obj.token.input
117 return obj
118 })
119}
120
121function makeLiquidReplacements(replacementsObj, text) {
122 let newText = text

Callers 1

getLiquidReplacementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected