Neutrome SDK reference
    Preparing search index...
    • Keeps only the instructions a predicate accepts.

      Parameters

      • program: Program

        Program to filter.

      • callback: (instruction: Instruction, index: number, program: Program) => boolean

        Returns true for instructions to keep.

      Returns Program

      A new program; the input is left untouched.