function snap_edges_start(arg) {
  const {
    edges
  } = arg;

  if (!edges) {
    return null;
  }

  arg.state.targetFields = arg.state.targetFields || [[edges.left ? 'left' : 'right', edges.top ? 'top' : 'bottom']];
  return snapSize.start(arg);
}
@module modifiers/snapEdges

@description
WOW> This module allows snapping of the edges of targets during resize
interactions.

```js
interact(target).resizable({
  snapEdges: {
    targets: [interact.snappers.grid({ x: 100, y: 50 })],
  },
})

interact(target).resizable({
  snapEdges: {
    targets: [
      interact.snappers.grid({
       top: 50,
       left: 50,
       bottom: 100,
       right: 100,
      }),
    ],
  },
})
```