How to use rfdc - 1 common examples

To help you get started, we’ve selected a few rfdc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github telaoumatenyanis / GenAlgo.js / src / core / GenAlgo.js View on Github external
// @flow
import rfdc from "rfdc";
import fittest from "../singleSelector/fittest.js";
import tournament3 from "../pairSelector/tournament3.js";
import greater from "../fitnessComparator/greater.js";
import delay from "../utils/delay.js";

const cloneDeep = rfdc();

type Individual = { entity: T, fitness: number };

type Parameters = {
  seed: T[],
  fitnessEvaluator: T => number,
  fitnessComparator: (number, number) => boolean,
  iterationCallback: ({
    iterationNumber: number,
    elapsedTime: number,
    bestIndividual: Individual,
    population: Individual[]
  }) => boolean,
  mutationFunction: T => T,
  crossoverFunction: (T, T) => [T, T],
  selectSingleFunction: (

rfdc

Really Fast Deep Clone

MIT
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis

Popular rfdc functions