JSFiddle - React, Tailwind, and code Playground

JavaScript

var array = ['dies','jam', 'jug', 'march', 'one', 'men', 'all'],
testText = "If one of them dies I will notice that one off my men is missing";

var diff = _.intersection(array, testText.split(' '));

console.log(diff);