Mini Prefix Remover

Removes the prefixes from a list of -letter words.

Ex: ["caulk", "cause", "caved", "caves"] => ["caulk", "se","ved","s"]

To reconstitute the initial array, use this code:

for(i in w)w[i]=w[i].padStart(5,w[i-1])

Input (JSON)

Output




See the version made for word of any length