concept delete in category data

This is an excerpt from Manning's book Data Wrangling with JavaScript.
Removing a field from every item in an array isn’t as convenient as filtering out the entire item the way we did with the JavaScript
filterfunction; however, JavaScript does provide adeleteoperator that does what we need: it removes a field from a JavaScript object (see figure 6.8).Figure 6.8 Deleting a field from each element in the array has the effect of deleting a “column” from our tabular data.
![]()
To use the
deleteoperator, we must iterate over our data set and apply it to each record as shown in listing 6.7. Note intransformDatathat we’re again using themapfunction to transform the entire array of data. ThetransformRowfunction visits each record and uses thedeleteoperator to remove thereef_typefield. Run this code, and it will produce the output file surveys-with-no-reef-type.csv. The output data is the same as the input, but with the desired column removed.