Solidifying understanding of filter, slice in filter/index.js