Take in consideration that
books stores a
List immutable data structure from Immutable.js. Using push() on
books will result in a new
List. Any update on the
List immutable collection results in a new
), then yes
push() would be impure, making the whole function impure.