mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Continues from #46380. The PR migrates the unit test cases from the original repo into the Next.js repo.
8 lines
235 B
TypeScript
8 lines
235 B
TypeScript
export default function noop(strings: TemplateStringsArray, ...keys: string[]) {
|
|
const lastIndex = strings.length - 1
|
|
return (
|
|
strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
|
|
strings[lastIndex]
|
|
)
|
|
}
|