I inherited an office plant, and no one seems to know what it is. We don’t believe it’s a spider plant, and other guesses ruled out include mother-in-law plant, snake plant, and cactus. It’s in a pot with a majesty palm, but it doesn’t look anything like it, so we ruled that out as well.
Looks a lot like a dracaena to me, but not quite enough shown in pic for certainty (for me anyways). Google dracaena varieties and see if those are what you got there…
I concur with it being pandanus as well. Seeing those last two pics (but not the last one linked just above, fwiw) and noticing all the serrations along leaves, then seeing these pics at Daves’ Garden site made the difference for me.