camelCaseDave/xrm-mock

View on GitHub
src/xrm-mock-generator/helpers/array.helper.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
export function findIndex(handlers: Xrm.Events.ContextSensitiveHandler[], handler: Xrm.Events.ContextSensitiveHandler): number {
    return handlers.findIndex((item) => item.name === handler.name);
}